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