1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22typedef struct _ACCESSIBLE_KEYSTROKE {
23  short modifiers;
24  short keyCode;
25  char keyChar;
26  short keyFunc;
27} ACCESSIBLE_KEYSTROKE;
28
29const short MODIFIER_SHIFT = 1;
30const short MODIFIER_CTRL = 2;
31const short MODIFIER_ALT = 4;
32
33const short KEYCODE_NUM0 = 256;
34const short KEYCODE_NUM1 = 257;
35const short KEYCODE_NUM2 = 258;
36const short KEYCODE_NUM3 = 259;
37const short KEYCODE_NUM4 = 260;
38const short KEYCODE_NUM5 = 261;
39const short KEYCODE_NUM6 = 262;
40const short KEYCODE_NUM7 = 263;
41const short KEYCODE_NUM8 = 264;
42const short KEYCODE_NUM9 = 265;
43const short KEYCODE_A = 512;
44const short KEYCODE_B = 513;
45const short KEYCODE_C = 514;
46const short KEYCODE_D = 515;
47const short KEYCODE_E = 516;
48const short KEYCODE_F = 517;
49const short KEYCODE_G = 518;
50const short KEYCODE_H = 519;
51const short KEYCODE_I = 520;
52const short KEYCODE_J = 521;
53const short KEYCODE_K = 522;
54const short KEYCODE_L = 523;
55const short KEYCODE_M = 524;
56const short KEYCODE_N = 525;
57const short KEYCODE_O = 526;
58const short KEYCODE_P = 527;
59const short KEYCODE_Q = 528;
60const short KEYCODE_R = 529;
61const short KEYCODE_S = 530;
62const short KEYCODE_T = 531;
63const short KEYCODE_U = 532;
64const short KEYCODE_V = 533;
65const short KEYCODE_W = 534;
66const short KEYCODE_X = 535;
67const short KEYCODE_Y = 536;
68const short KEYCODE_Z = 537;
69const short KEYCODE_F1 = 768;
70const short KEYCODE_F2 = 769;
71const short KEYCODE_F3 = 770;
72const short KEYCODE_F4 = 771;
73const short KEYCODE_F5 = 772;
74const short KEYCODE_F6 = 773;
75const short KEYCODE_F7 = 774;
76const short KEYCODE_F8 = 775;
77const short KEYCODE_F9 = 776;
78const short KEYCODE_F10 = 777;
79const short KEYCODE_F11 = 778;
80const short KEYCODE_F12 = 779;
81const short KEYCODE_F13 = 780;
82const short KEYCODE_F14 = 781;
83const short KEYCODE_F15 = 782;
84const short KEYCODE_F16 = 783;
85const short KEYCODE_F17 = 784;
86const short KEYCODE_F18 = 785;
87const short KEYCODE_F19 = 786;
88const short KEYCODE_F20 = 787;
89const short KEYCODE_F21 = 788;
90const short KEYCODE_F22 = 789;
91const short KEYCODE_F23 = 790;
92const short KEYCODE_F24 = 791;
93const short KEYCODE_F25 = 792;
94const short KEYCODE_F26 = 793;
95const short KEYCODE_DOWN = 1024;
96const short KEYCODE_UP = 1025;
97const short KEYCODE_LEFT = 1026;
98const short KEYCODE_RIGHT = 1027;
99const short KEYCODE_HOME = 1028;
100const short KEYCODE_END = 1029;
101const short KEYCODE_PAGEUP = 1030;
102const short KEYCODE_PAGEDOWN = 1031;
103const short KEYCODE_RETURN = 1280;
104const short KEYCODE_ESCAPE = 1281;
105const short KEYCODE_TAB = 1282;
106const short KEYCODE_BACKSPACE = 1283;
107const short KEYCODE_SPACE = 1284;
108const short KEYCODE_INSERT = 1285;
109const short KEYCODE_DELETE = 1286;
110const short KEYCODE_ADD = 1287;
111const short KEYCODE_SUBTRACT = 1288;
112const short KEYCODE_MULTIPLY = 1289;
113const short KEYCODE_DIVIDE = 1290;
114const short KEYCODE_POINT = 1291;
115const short KEYCODE_COMMA = 1292;
116const short KEYCODE_LESS = 1293;
117const short KEYCODE_GREATER = 1294;
118const short KEYCODE_EQUAL = 1295;
119const short KEYCODE_OPEN = 1296;
120const short KEYCODE_CUT = 1297;
121const short KEYCODE_COPY = 1298;
122const short KEYCODE_PASTE = 1299;
123const short KEYCODE_UNDO = 1300;
124const short KEYCODE_REPEAT = 1301;
125const short KEYCODE_FIND = 1302;
126const short KEYCODE_PROPERTIES = 1303;
127const short KEYCODE_FRONT = 1304;
128const short KEYCODE_CONTEXTMENU = 1305;
129const short KEYCODE_HELP = 1306;
130
131const short SHORTCUT_DONTKNOW = 0;
132const short NEW = 1;
133const short OPEN = 2;
134const short SAVE = 3;
135const short SAVEAS = 4;
136const short PRINT = 5;
137const short CLOSE = 6;
138const short QUIT = 7;
139const short CUT = 8;
140const short COPY = 9;
141const short PASTE = 10;
142const short UNDO = 11;
143const short REDO = 12;
144const short UNODELETE = 13;
145const short REPEAT = 14;
146const short FIND = 15;
147const short FINDBACKWARD = 16;
148const short PROPERTIES = 17;
149const short FRONT = 18;
150