Ultralight  1.0.0
A fast, lightweight, HTML UI engine for native apps.
KeyCodes.h
Go to the documentation of this file.
1 #pragma once
15 
16 namespace ultralight {
17 
22 namespace KeyCodes {
23 
24  // GK_BACK (08) BACKSPACE key
25  const int GK_BACK = 0x08;
26 
27  // GK_TAB (09) TAB key
28  const int GK_TAB = 0x09;
29 
30  // GK_CLEAR (0C) CLEAR key
31  const int GK_CLEAR = 0x0C;
32 
33  // GK_RETURN (0D)
34  const int GK_RETURN = 0x0D;
35 
36  // GK_SHIFT (10) SHIFT key
37  const int GK_SHIFT = 0x10;
38 
39  // GK_CONTROL (11) CTRL key
40  const int GK_CONTROL = 0x11;
41 
42  // GK_MENU (12) ALT key
43  const int GK_MENU = 0x12;
44 
45  // GK_PAUSE (13) PAUSE key
46  const int GK_PAUSE = 0x13;
47 
48  // GK_CAPITAL (14) CAPS LOCK key
49  const int GK_CAPITAL = 0x14;
50 
51  // GK_KANA (15) Input Method Editor (IME) Kana mode
52  const int GK_KANA = 0x15;
53 
54  // GK_HANGUEL (15) IME Hanguel mode (maintained for compatibility; use GK_HANGUL)
55  // GK_HANGUL (15) IME Hangul mode
56  const int GK_HANGUL = 0x15;
57 
58  // GK_JUNJA (17) IME Junja mode
59  const int GK_JUNJA = 0x17;
60 
61  // GK_FINAL (18) IME final mode
62  const int GK_FINAL = 0x18;
63 
64  // GK_HANJA (19) IME Hanja mode
65  const int GK_HANJA = 0x19;
66 
67  // GK_KANJI (19) IME Kanji mode
68  const int GK_KANJI = 0x19;
69 
70  // GK_ESCAPE (1B) ESC key
71  const int GK_ESCAPE = 0x1B;
72 
73  // GK_CONVERT (1C) IME convert
74  const int GK_CONVERT = 0x1C;
75 
76  // GK_NONCONVERT (1D) IME nonconvert
77  const int GK_NONCONVERT = 0x1D;
78 
79  // GK_ACCEPT (1E) IME accept
80  const int GK_ACCEPT = 0x1E;
81 
82  // GK_MODECHANGE (1F) IME mode change request
83  const int GK_MODECHANGE = 0x1F;
84 
85  // GK_SPACE (20) SPACEBAR
86  const int GK_SPACE = 0x20;
87 
88  // GK_PRIOR (21) PAGE UP key
89  const int GK_PRIOR = 0x21;
90 
91  // GK_NEXT (22) PAGE DOWN key
92  const int GK_NEXT = 0x22;
93 
94  // GK_END (23) END key
95  const int GK_END = 0x23;
96 
97  // GK_HOME (24) HOME key
98  const int GK_HOME = 0x24;
99 
100  // GK_LEFT (25) LEFT ARROW key
101  const int GK_LEFT = 0x25;
102 
103  // GK_UP (26) UP ARROW key
104  const int GK_UP = 0x26;
105 
106  // GK_RIGHT (27) RIGHT ARROW key
107  const int GK_RIGHT = 0x27;
108 
109  // GK_DOWN (28) DOWN ARROW key
110  const int GK_DOWN = 0x28;
111 
112  // GK_SELECT (29) SELECT key
113  const int GK_SELECT = 0x29;
114 
115  // GK_PRINT (2A) PRINT key
116  const int GK_PRINT = 0x2A;
117 
118  // GK_EXECUTE (2B) EXECUTE key
119  const int GK_EXECUTE = 0x2B;
120 
121  // GK_SNAPSHOT (2C) PRINT SCREEN key
122  const int GK_SNAPSHOT = 0x2C;
123 
124  // GK_INSERT (2D) INS key
125  const int GK_INSERT = 0x2D;
126 
127  // GK_DELETE (2E) DEL key
128  const int GK_DELETE = 0x2E;
129 
130  // GK_HELP (2F) HELP key
131  const int GK_HELP = 0x2F;
132 
133  // (30) 0 key
134  const int GK_0 = 0x30;
135 
136  // (31) 1 key
137  const int GK_1 = 0x31;
138 
139  // (32) 2 key
140  const int GK_2 = 0x32;
141 
142  // (33) 3 key
143  const int GK_3 = 0x33;
144 
145  // (34) 4 key
146  const int GK_4 = 0x34;
147 
148  // (35) 5 key;
149  const int GK_5 = 0x35;
150 
151  // (36) 6 key
152  const int GK_6 = 0x36;
153 
154  // (37) 7 key
155  const int GK_7 = 0x37;
156 
157  // (38) 8 key
158  const int GK_8 = 0x38;
159 
160  // (39) 9 key
161  const int GK_9 = 0x39;
162 
163  // (41) A key
164  const int GK_A = 0x41;
165 
166  // (42) B key
167  const int GK_B = 0x42;
168 
169  // (43) C key
170  const int GK_C = 0x43;
171 
172  // (44) D key
173  const int GK_D = 0x44;
174 
175  // (45) E key
176  const int GK_E = 0x45;
177 
178  // (46) F key
179  const int GK_F = 0x46;
180 
181  // (47) G key
182  const int GK_G = 0x47;
183 
184  // (48) H key
185  const int GK_H = 0x48;
186 
187  // (49) I key
188  const int GK_I = 0x49;
189 
190  // (4A) J key
191  const int GK_J = 0x4A;
192 
193  // (4B) K key
194  const int GK_K = 0x4B;
195 
196  // (4C) L key
197  const int GK_L = 0x4C;
198 
199  // (4D) M key
200  const int GK_M = 0x4D;
201 
202  // (4E) N key
203  const int GK_N = 0x4E;
204 
205  // (4F) O key
206  const int GK_O = 0x4F;
207 
208  // (50) P key
209  const int GK_P = 0x50;
210 
211  // (51) Q key
212  const int GK_Q = 0x51;
213 
214  // (52) R key
215  const int GK_R = 0x52;
216 
217  // (53) S key
218  const int GK_S = 0x53;
219 
220  // (54) T key
221  const int GK_T = 0x54;
222 
223  // (55) U key
224  const int GK_U = 0x55;
225 
226  // (56) V key
227  const int GK_V = 0x56;
228 
229  // (57) W key
230  const int GK_W = 0x57;
231 
232  // (58) X key
233  const int GK_X = 0x58;
234 
235  // (59) Y key
236  const int GK_Y = 0x59;
237 
238  // (5A) Z key
239  const int GK_Z = 0x5A;
240 
241  // GK_LWIN (5B) Left Windows key (Microsoft Natural keyboard)
242  const int GK_LWIN = 0x5B;
243 
244  // GK_RWIN (5C) Right Windows key (Natural keyboard)
245  const int GK_RWIN = 0x5C;
246 
247  // GK_APPS (5D) Applications key (Natural keyboard)
248  const int GK_APPS = 0x5D;
249 
250  // GK_SLEEP (5F) Computer Sleep key
251  const int GK_SLEEP = 0x5F;
252 
253  // GK_NUMPAD0 (60) Numeric keypad 0 key
254  const int GK_NUMPAD0 = 0x60;
255 
256  // GK_NUMPAD1 (61) Numeric keypad 1 key
257  const int GK_NUMPAD1 = 0x61;
258 
259  // GK_NUMPAD2 (62) Numeric keypad 2 key
260  const int GK_NUMPAD2 = 0x62;
261 
262  // GK_NUMPAD3 (63) Numeric keypad 3 key
263  const int GK_NUMPAD3 = 0x63;
264 
265  // GK_NUMPAD4 (64) Numeric keypad 4 key
266  const int GK_NUMPAD4 = 0x64;
267 
268  // GK_NUMPAD5 (65) Numeric keypad 5 key
269  const int GK_NUMPAD5 = 0x65;
270 
271  // GK_NUMPAD6 (66) Numeric keypad 6 key
272  const int GK_NUMPAD6 = 0x66;
273 
274  // GK_NUMPAD7 (67) Numeric keypad 7 key
275  const int GK_NUMPAD7 = 0x67;
276 
277  // GK_NUMPAD8 (68) Numeric keypad 8 key
278  const int GK_NUMPAD8 = 0x68;
279 
280  // GK_NUMPAD9 (69) Numeric keypad 9 key
281  const int GK_NUMPAD9 = 0x69;
282 
283  // GK_MULTIPLY (6A) Multiply key
284  const int GK_MULTIPLY = 0x6A;
285 
286  // GK_ADD (6B) Add key
287  const int GK_ADD = 0x6B;
288 
289  // GK_SEPARATOR (6C) Separator key
290  const int GK_SEPARATOR = 0x6C;
291 
292  // GK_SUBTRACT (6D) Subtract key
293  const int GK_SUBTRACT = 0x6D;
294 
295  // GK_DECIMAL (6E) Decimal key
296  const int GK_DECIMAL = 0x6E;
297 
298  // GK_DIVIDE (6F) Divide key
299  const int GK_DIVIDE = 0x6F;
300 
301  // GK_F1 (70) F1 key
302  const int GK_F1 = 0x70;
303 
304  // GK_F2 (71) F2 key
305  const int GK_F2 = 0x71;
306 
307  // GK_F3 (72) F3 key
308  const int GK_F3 = 0x72;
309 
310  // GK_F4 (73) F4 key
311  const int GK_F4 = 0x73;
312 
313  // GK_F5 (74) F5 key
314  const int GK_F5 = 0x74;
315 
316  // GK_F6 (75) F6 key
317  const int GK_F6 = 0x75;
318 
319  // GK_F7 (76) F7 key
320  const int GK_F7 = 0x76;
321 
322  // GK_F8 (77) F8 key
323  const int GK_F8 = 0x77;
324 
325  // GK_F9 (78) F9 key
326  const int GK_F9 = 0x78;
327 
328  // GK_F10 (79) F10 key
329  const int GK_F10 = 0x79;
330 
331  // GK_F11 (7A) F11 key
332  const int GK_F11 = 0x7A;
333 
334  // GK_F12 (7B) F12 key
335  const int GK_F12 = 0x7B;
336 
337  // GK_F13 (7C) F13 key
338  const int GK_F13 = 0x7C;
339 
340  // GK_F14 (7D) F14 key
341  const int GK_F14 = 0x7D;
342 
343  // GK_F15 (7E) F15 key
344  const int GK_F15 = 0x7E;
345 
346  // GK_F16 (7F) F16 key
347  const int GK_F16 = 0x7F;
348 
349  // GK_F17 (80H) F17 key
350  const int GK_F17 = 0x80;
351 
352  // GK_F18 (81H) F18 key
353  const int GK_F18 = 0x81;
354 
355  // GK_F19 (82H) F19 key
356  const int GK_F19 = 0x82;
357 
358  // GK_F20 (83H) F20 key
359  const int GK_F20 = 0x83;
360 
361  // GK_F21 (84H) F21 key
362  const int GK_F21 = 0x84;
363 
364  // GK_F22 (85H) F22 key
365  const int GK_F22 = 0x85;
366 
367  // GK_F23 (86H) F23 key
368  const int GK_F23 = 0x86;
369 
370  // GK_F24 (87H) F24 key
371  const int GK_F24 = 0x87;
372 
373  // GK_NUMLOCK (90) NUM LOCK key
374  const int GK_NUMLOCK = 0x90;
375 
376  // GK_SCROLL (91) SCROLL LOCK key
377  const int GK_SCROLL = 0x91;
378 
379  // GK_LSHIFT (A0) Left SHIFT key
380  const int GK_LSHIFT = 0xA0;
381 
382  // GK_RSHIFT (A1) Right SHIFT key
383  const int GK_RSHIFT = 0xA1;
384 
385  // GK_LCONTROL (A2) Left CONTROL key
386  const int GK_LCONTROL = 0xA2;
387 
388  // GK_RCONTROL (A3) Right CONTROL key
389  const int GK_RCONTROL = 0xA3;
390 
391  // GK_LMENU (A4) Left MENU key
392  const int GK_LMENU = 0xA4;
393 
394  // GK_RMENU (A5) Right MENU key
395  const int GK_RMENU = 0xA5;
396 
397  // GK_BROWSER_BACK (A6) Windows 2000/XP: Browser Back key
398  const int GK_BROWSER_BACK = 0xA6;
399 
400  // GK_BROWSER_FORWARD (A7) Windows 2000/XP: Browser Forward key
401  const int GK_BROWSER_FORWARD = 0xA7;
402 
403  // GK_BROWSER_REFRESH (A8) Windows 2000/XP: Browser Refresh key
404  const int GK_BROWSER_REFRESH = 0xA8;
405 
406  // GK_BROWSER_STOP (A9) Windows 2000/XP: Browser Stop key
407  const int GK_BROWSER_STOP = 0xA9;
408 
409  // GK_BROWSER_SEARCH (AA) Windows 2000/XP: Browser Search key
410  const int GK_BROWSER_SEARCH = 0xAA;
411 
412  // GK_BROWSER_FAVORITES (AB) Windows 2000/XP: Browser Favorites key
413  const int GK_BROWSER_FAVORITES = 0xAB;
414 
415  // GK_BROWSER_HOME (AC) Windows 2000/XP: Browser Start and Home key
416  const int GK_BROWSER_HOME = 0xAC;
417 
418  // GK_VOLUME_MUTE (AD) Windows 2000/XP: Volume Mute key
419  const int GK_VOLUME_MUTE = 0xAD;
420 
421  // GK_VOLUME_DOWN (AE) Windows 2000/XP: Volume Down key
422  const int GK_VOLUME_DOWN = 0xAE;
423 
424  // GK_VOLUME_UP (AF) Windows 2000/XP: Volume Up key
425  const int GK_VOLUME_UP = 0xAF;
426 
427  // GK_MEDIA_NEXT_TRACK (B0) Windows 2000/XP: Next Track key
428  const int GK_MEDIA_NEXT_TRACK = 0xB0;
429 
430  // GK_MEDIA_PREV_TRACK (B1) Windows 2000/XP: Previous Track key
431  const int GK_MEDIA_PREV_TRACK = 0xB1;
432 
433  // GK_MEDIA_STOP (B2) Windows 2000/XP: Stop Media key
434  const int GK_MEDIA_STOP = 0xB2;
435 
436  // GK_MEDIA_PLAY_PAUSE (B3) Windows 2000/XP: Play/Pause Media key
437  const int GK_MEDIA_PLAY_PAUSE = 0xB3;
438 
439  // GK_LAUNCH_MAIL (B4) Windows 2000/XP: Start Mail key
440  const int GK_MEDIA_LAUNCH_MAIL = 0xB4;
441 
442  // GK_LAUNCH_MEDIA_SELECT (B5) Windows 2000/XP: Select Media key
443  const int GK_MEDIA_LAUNCH_MEDIA_SELECT = 0xB5;
444 
445  // GK_LAUNCH_APP1 (B6) Windows 2000/XP: Start Application 1 key
446  const int GK_MEDIA_LAUNCH_APP1 = 0xB6;
447 
448  // GK_LAUNCH_APP2 (B7) Windows 2000/XP: Start Application 2 key
449  const int GK_MEDIA_LAUNCH_APP2 = 0xB7;
450 
451  // GK_OEM_1 (BA) Used for miscellaneous characters; it can vary by keyboard. Windows 2000/XP: For the US standard keyboard, the ';:' key
452  const int GK_OEM_1 = 0xBA;
453 
454  // GK_OEM_PLUS (BB) Windows 2000/XP: For any country/region, the '+' key
455  const int GK_OEM_PLUS = 0xBB;
456 
457  // GK_OEM_COMMA (BC) Windows 2000/XP: For any country/region, the ',' key
458  const int GK_OEM_COMMA = 0xBC;
459 
460  // GK_OEM_MINUS (BD) Windows 2000/XP: For any country/region, the '-' key
461  const int GK_OEM_MINUS = 0xBD;
462 
463  // GK_OEM_PERIOD (BE) Windows 2000/XP: For any country/region, the '.' key
464  const int GK_OEM_PERIOD = 0xBE;
465 
466  // GK_OEM_2 (BF) Used for miscellaneous characters; it can vary by keyboard. Windows 2000/XP: For the US standard keyboard, the '/?' key
467  const int GK_OEM_2 = 0xBF;
468 
469  // GK_OEM_3 (C0) Used for miscellaneous characters; it can vary by keyboard. Windows 2000/XP: For the US standard keyboard, the '`~' key
470  const int GK_OEM_3 = 0xC0;
471 
472  // GK_OEM_4 (DB) Used for miscellaneous characters; it can vary by keyboard. Windows 2000/XP: For the US standard keyboard, the '[{' key
473  const int GK_OEM_4 = 0xDB;
474 
475  // GK_OEM_5 (DC) Used for miscellaneous characters; it can vary by keyboard. Windows 2000/XP: For the US standard keyboard, the '\|' key
476  const int GK_OEM_5 = 0xDC;
477 
478  // GK_OEM_6 (DD) Used for miscellaneous characters; it can vary by keyboard. Windows 2000/XP: For the US standard keyboard, the ']}' key
479  const int GK_OEM_6 = 0xDD;
480 
481  // GK_OEM_7 (DE) Used for miscellaneous characters; it can vary by keyboard. Windows 2000/XP: For the US standard keyboard, the 'single-quote/double-quote' key
482  const int GK_OEM_7 = 0xDE;
483 
484  // GK_OEM_8 (DF) Used for miscellaneous characters; it can vary by keyboard.
485  const int GK_OEM_8 = 0xDF;
486 
487  // GK_OEM_102 (E2) Windows 2000/XP: Either the angle bracket key or the backslash key on the RT 102-key keyboard
488  const int GK_OEM_102 = 0xE2;
489 
490  // GK_PROCESSKEY (E5) Windows 95/98/Me, Windows NT 4.0, Windows 2000/XP: IME PROCESS key
491  const int GK_PROCESSKEY = 0xE5;
492 
493  // GK_PACKET (E7) Windows 2000/XP: Used to pass Unicode characters as if they were keystrokes. The GK_PACKET key is the low word of a 32-bit Virtual Key value used for non-keyboard input methods. For more information, see Remark in KEYBDINPUT,SendInput, WM_KEYDOWN, and WM_KEYUP
494  const int GK_PACKET = 0xE7;
495 
496  // GK_ATTN (F6) Attn key
497  const int GK_ATTN = 0xF6;
498 
499  // GK_CRSEL (F7) CrSel key
500  const int GK_CRSEL = 0xF7;
501 
502  // GK_EXSEL (F8) ExSel key
503  const int GK_EXSEL = 0xF8;
504 
505  // GK_EREOF (F9) Erase EOF key
506  const int GK_EREOF = 0xF9;
507 
508  // GK_PLAY (FA) Play key
509  const int GK_PLAY = 0xFA;
510 
511  // GK_ZOOM (FB) Zoom key
512  const int GK_ZOOM = 0xFB;
513 
514  // GK_NONAME (FC) Reserved for future use
515  const int GK_NONAME = 0xFC;
516 
517  // GK_PA1 (FD) PA1 key
518  const int GK_PA1 = 0xFD;
519 
520  // GK_OEM_CLEAR (FE) Clear key
521  const int GK_OEM_CLEAR = 0xFE;
522 
523  const int GK_UNKNOWN = 0;
524 
525 } // namespace KeyCodes
526 
527 } // namespace ultralight
This is a set of common JavaScriptCore Helper functions to simplify sample code.
Definition: App.h:19