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 
22 #ifndef __ACCESSIBLEKEYSTROKE_H_
23 #define __ACCESSIBLEKEYSTROKE_H_
24 
25 #pragma	once
26 
27 typedef struct _ACCESSIBLE_KEYSTROKE {
28   short modifiers;
29   short keyCode;
30   char keyChar;
31   short keyFunc;
32 } ACCESSIBLE_KEYSTROKE;
33 
34 const short MODIFIER_SHIFT = 1;
35 const short MODIFIER_CTRL = 2;
36 const short MODIFIER_ALT = 4;
37 
38 const short KEYCODE_NUM0 = 256;
39 const short KEYCODE_NUM1 = 257;
40 const short KEYCODE_NUM2 = 258;
41 const short KEYCODE_NUM3 = 259;
42 const short KEYCODE_NUM4 = 260;
43 const short KEYCODE_NUM5 = 261;
44 const short KEYCODE_NUM6 = 262;
45 const short KEYCODE_NUM7 = 263;
46 const short KEYCODE_NUM8 = 264;
47 const short KEYCODE_NUM9 = 265;
48 const short KEYCODE_A = 512;
49 const short KEYCODE_B = 513;
50 const short KEYCODE_C = 514;
51 const short KEYCODE_D = 515;
52 const short KEYCODE_E = 516;
53 const short KEYCODE_F = 517;
54 const short KEYCODE_G = 518;
55 const short KEYCODE_H = 519;
56 const short KEYCODE_I = 520;
57 const short KEYCODE_J = 521;
58 const short KEYCODE_K = 522;
59 const short KEYCODE_L = 523;
60 const short KEYCODE_M = 524;
61 const short KEYCODE_N = 525;
62 const short KEYCODE_O = 526;
63 const short KEYCODE_P = 527;
64 const short KEYCODE_Q = 528;
65 const short KEYCODE_R = 529;
66 const short KEYCODE_S = 530;
67 const short KEYCODE_T = 531;
68 const short KEYCODE_U = 532;
69 const short KEYCODE_V = 533;
70 const short KEYCODE_W = 534;
71 const short KEYCODE_X = 535;
72 const short KEYCODE_Y = 536;
73 const short KEYCODE_Z = 537;
74 const short KEYCODE_F1 = 768;
75 const short KEYCODE_F2 = 769;
76 const short KEYCODE_F3 = 770;
77 const short KEYCODE_F4 = 771;
78 const short KEYCODE_F5 = 772;
79 const short KEYCODE_F6 = 773;
80 const short KEYCODE_F7 = 774;
81 const short KEYCODE_F8 = 775;
82 const short KEYCODE_F9 = 776;
83 const short KEYCODE_F10 = 777;
84 const short KEYCODE_F11 = 778;
85 const short KEYCODE_F12 = 779;
86 const short KEYCODE_F13 = 780;
87 const short KEYCODE_F14 = 781;
88 const short KEYCODE_F15 = 782;
89 const short KEYCODE_F16 = 783;
90 const short KEYCODE_F17 = 784;
91 const short KEYCODE_F18 = 785;
92 const short KEYCODE_F19 = 786;
93 const short KEYCODE_F20 = 787;
94 const short KEYCODE_F21 = 788;
95 const short KEYCODE_F22 = 789;
96 const short KEYCODE_F23 = 790;
97 const short KEYCODE_F24 = 791;
98 const short KEYCODE_F25 = 792;
99 const short KEYCODE_F26 = 793;
100 const short KEYCODE_DOWN = 1024;
101 const short KEYCODE_UP = 1025;
102 const short KEYCODE_LEFT = 1026;
103 const short KEYCODE_RIGHT = 1027;
104 const short KEYCODE_HOME = 1028;
105 const short KEYCODE_END = 1029;
106 const short KEYCODE_PAGEUP = 1030;
107 const short KEYCODE_PAGEDOWN = 1031;
108 const short KEYCODE_RETURN = 1280;
109 const short KEYCODE_ESCAPE = 1281;
110 const short KEYCODE_TAB = 1282;
111 const short KEYCODE_BACKSPACE = 1283;
112 const short KEYCODE_SPACE = 1284;
113 const short KEYCODE_INSERT = 1285;
114 const short KEYCODE_DELETE = 1286;
115 const short KEYCODE_ADD = 1287;
116 const short KEYCODE_SUBTRACT = 1288;
117 const short KEYCODE_MULTIPLY = 1289;
118 const short KEYCODE_DIVIDE = 1290;
119 const short KEYCODE_POINT = 1291;
120 const short KEYCODE_COMMA = 1292;
121 const short KEYCODE_LESS = 1293;
122 const short KEYCODE_GREATER = 1294;
123 const short KEYCODE_EQUAL = 1295;
124 const short KEYCODE_OPEN = 1296;
125 const short KEYCODE_CUT = 1297;
126 const short KEYCODE_COPY = 1298;
127 const short KEYCODE_PASTE = 1299;
128 const short KEYCODE_UNDO = 1300;
129 const short KEYCODE_REPEAT = 1301;
130 const short KEYCODE_FIND = 1302;
131 const short KEYCODE_PROPERTIES = 1303;
132 const short KEYCODE_FRONT = 1304;
133 const short KEYCODE_CONTEXTMENU = 1305;
134 const short KEYCODE_HELP = 1306;
135 
136 const short SHORTCUT_DONTKNOW = 0;
137 const short NEW = 1;
138 const short OPEN = 2;
139 const short SAVE = 3;
140 const short SAVEAS = 4;
141 const short PRINT = 5;
142 const short CLOSE = 6;
143 const short QUIT = 7;
144 const short CUT = 8;
145 const short COPY = 9;
146 const short PASTE = 10;
147 const short UNDO = 11;
148 const short REDO = 12;
149 const short UNODELETE = 13;
150 const short REPEAT = 14;
151 const short FIND = 15;
152 const short FINDBACKWARD = 16;
153 const short PROPERTIES = 17;
154 const short FRONT = 18;
155 
156 
157 #endif //#define __ACCESSIBLEKEYSTROKE_H_
158