1 module awebview.wrapper.cpp.webkeyboardcodes;
2 
3 
4 mixin template Awesomium()
5 {
6 }
7 
8 mixin template Awesomium4D()
9 {
10 }
11 
12 
13 enum KeyCodes
14 {
15     // AK_BACK (08) BACKSPACE key
16     BACK = 0x08,
17 
18     // AK_TAB (09) TAB key
19     TAB = 0x09,
20 
21     // AK_CLEAR (0C) CLEAR key
22     CLEAR = 0x0C,
23 
24     // AK_RETURN (0D)
25     RETURN = 0x0D,
26 
27     // AK_SHIFT (10) SHIFT key
28     SHIFT = 0x10,
29 
30     // AK_CONTROL (11) CTRL key
31     CONTROL = 0x11,
32 
33     // AK_MENU (12) ALT key
34     MENU = 0x12,
35 
36     // AK_PAUSE (13) PAUSE key
37     PAUSE = 0x13,
38 
39     // AK_CAPITAL (14) CAPS LOCK key
40     CAPITAL = 0x14,
41 
42     // AK_KANA (15) Input Method Editor (IME) Kana mode
43     KANA = 0x15,
44 
45     // AK_HANGUEL (15) IME Hanguel mode (maintained for compatibility; use AK_HANGUL)
46     // AK_HANGUL (15) IME Hangul mode
47     HANGUL = 0x15,
48 
49     // AK_JUNJA (17) IME Junja mode
50     JUNJA = 0x17,
51 
52     // AK_FINAL (18) IME final mode
53     FINAL = 0x18,
54     
55     // AK_HANJA (19) IME Hanja mode
56     HANJA = 0x19,
57     
58     // AK_KANJI (19) IME Kanji mode
59     KANJI = 0x19,
60     
61     // AK_ESCAPE (1B) ESC key
62     ESCAPE = 0x1B,
63     
64     // AK_CONVERT (1C) IME convert
65     CONVERT = 0x1C,
66     
67     // AK_NONCONVERT (1D) IME nonconvert
68     NONCONVERT = 0x1D,
69     
70     // AK_ACCEPT (1E) IME accept
71     ACCEPT = 0x1E,
72     
73     // AK_MODECHANGE (1F) IME mode change request
74     MODECHANGE = 0x1F,
75     
76     // AK_SPACE (20) SPACEBAR
77     SPACE = 0x20,
78     
79     // AK_PRIOR (21) PAGE UP key
80     PRIOR = 0x21,
81     
82     // AK_NEXT (22) PAGE DOWN key
83     NEXT = 0x22,
84     
85     // AK_END (23) END key
86     END = 0x23,
87     
88     // AK_HOME (24) HOME key
89     HOME = 0x24,
90     
91     // AK_LEFT (25) LEFT ARROW key
92     LEFT = 0x25,
93     
94     // AK_UP (26) UP ARROW key
95     UP = 0x26,
96     
97     // AK_RIGHT (27) RIGHT ARROW key
98     RIGHT = 0x27,
99     
100     // AK_DOWN (28) DOWN ARROW key
101     DOWN = 0x28,
102     
103     // AK_SELECT (29) SELECT key
104     SELECT = 0x29,
105     
106     // AK_PRINT (2A) PRINT key
107     PRINT = 0x2A,
108     
109     // AK_EXECUTE (2B) EXECUTE key
110     EXECUTE = 0x2B,
111     
112     // AK_SNAPSHOT (2C) PRINT SCREEN key
113     SNAPSHOT = 0x2C,
114     
115     // AK_INSERT (2D) INS key
116     INSERT = 0x2D,
117     
118     // AK_DELETE (2E) DEL key
119     DELETE = 0x2E,
120     
121     // AK_HELP (2F) HELP key
122     HELP = 0x2F,
123     
124     // (30) 0 key
125     _0 = 0x30,
126     
127     // (31) 1 key
128     _1 = 0x31,
129     
130     // (32) 2 key
131     _2 = 0x32,
132     
133     // (33) 3 key
134     _3 = 0x33,
135     
136     // (34) 4 key
137     _4 = 0x34,
138     
139     // (35) 5 key,
140     _5 = 0x35,
141     
142     // (36) 6 key
143     _6 = 0x36,
144     
145     // (37) 7 key
146     _7 = 0x37,
147     
148     // (38) 8 key
149     _8 = 0x38,
150     
151     // (39) 9 key
152     _9 = 0x39,
153     
154     // (41) A key
155     A = 0x41,
156     
157     // (42) B key
158     B = 0x42,
159     
160     // (43) C key
161     C = 0x43,
162     
163     // (44) D key
164     D = 0x44,
165     
166     // (45) E key
167     E = 0x45,
168     
169     // (46) F key
170     F = 0x46,
171     
172     // (47) G key
173     G = 0x47,
174     
175     // (48) H key
176     H = 0x48,
177     
178     // (49) I key
179     I = 0x49,
180     
181     // (4A) J key
182     J = 0x4A,
183     
184     // (4B) K key
185     K = 0x4B,
186     
187     // (4C) L key
188     L = 0x4C,
189     
190     // (4D) M key
191     M = 0x4D,
192     
193     // (4E) N key
194     N = 0x4E,
195     
196     // (4F) O key
197     O = 0x4F,
198     
199     // (50) P key
200     P = 0x50,
201     
202     // (51) Q key
203     Q = 0x51,
204     
205     // (52) R key
206     R = 0x52,
207     
208     // (53) S key
209     S = 0x53,
210     
211     // (54) T key
212     T = 0x54,
213     
214     // (55) U key
215     U = 0x55,
216     
217     // (56) V key
218     V = 0x56,
219     
220     // (57) W key
221     W = 0x57,
222     
223     // (58) X key
224     X = 0x58,
225     
226     // (59) Y key
227     Y = 0x59,
228     
229     // (5A) Z key
230     Z = 0x5A,
231     
232     // AK_LWIN (5B) Left Windows key (Microsoft Natural keyboard)
233     LWIN = 0x5B,
234     
235     // AK_RWIN (5C) Right Windows key (Natural keyboard)
236     RWIN = 0x5C,
237     
238     // AK_APPS (5D) Applications key (Natural keyboard)
239     APPS = 0x5D,
240     
241     // AK_SLEEP (5F) Computer Sleep key
242     SLEEP = 0x5F,
243     
244     // AK_NUMPAD0 (60) Numeric keypad 0 key
245     NUMPAD0 = 0x60,
246     
247     // AK_NUMPAD1 (61) Numeric keypad 1 key
248     NUMPAD1 = 0x61,
249     
250     // AK_NUMPAD2 (62) Numeric keypad 2 key
251     NUMPAD2 = 0x62,
252     
253     // AK_NUMPAD3 (63) Numeric keypad 3 key
254     NUMPAD3 = 0x63,
255     
256     // AK_NUMPAD4 (64) Numeric keypad 4 key
257     NUMPAD4 = 0x64,
258     
259     // AK_NUMPAD5 (65) Numeric keypad 5 key
260     NUMPAD5 = 0x65,
261     
262     // AK_NUMPAD6 (66) Numeric keypad 6 key
263     NUMPAD6 = 0x66,
264     
265     // AK_NUMPAD7 (67) Numeric keypad 7 key
266     NUMPAD7 = 0x67,
267     
268     // AK_NUMPAD8 (68) Numeric keypad 8 key
269     NUMPAD8 = 0x68,
270     
271     // AK_NUMPAD9 (69) Numeric keypad 9 key
272     NUMPAD9 = 0x69,
273     
274     // AK_MULTIPLY (6A) Multiply key
275     MULTIPLY = 0x6A,
276     
277     // AK_ADD (6B) Add key
278     ADD = 0x6B,
279     
280     // AK_SEPARATOR (6C) Separator key
281     SEPARATOR = 0x6C,
282     
283     // AK_SUBTRACT (6D) Subtract key
284     SUBTRACT = 0x6D,
285     
286     // AK_DECIMAL (6E) Decimal key
287     DECIMAL = 0x6E,
288     
289     // AK_DIVIDE (6F) Divide key
290     DIVIDE = 0x6F,
291     
292     // AK_F1 (70) F1 key
293     F1 = 0x70,
294     
295     // AK_F2 (71) F2 key
296     F2 = 0x71,
297     
298     // AK_F3 (72) F3 key
299     F3 = 0x72,
300     
301     // AK_F4 (73) F4 key
302     F4 = 0x73,
303     
304     // AK_F5 (74) F5 key
305     F5 = 0x74,
306     
307     // AK_F6 (75) F6 key
308     F6 = 0x75,
309     
310     // AK_F7 (76) F7 key
311     F7 = 0x76,
312     
313     // AK_F8 (77) F8 key
314     F8 = 0x77,
315     
316     // AK_F9 (78) F9 key
317     F9 = 0x78,
318     
319     // AK_F10 (79) F10 key
320     F10 = 0x79,
321     
322     // AK_F11 (7A) F11 key
323     F11 = 0x7A,
324     
325     // AK_F12 (7B) F12 key
326     F12 = 0x7B,
327     
328     // AK_F13 (7C) F13 key
329     F13 = 0x7C,
330     
331     // AK_F14 (7D) F14 key
332     F14 = 0x7D,
333     
334     // AK_F15 (7E) F15 key
335     F15 = 0x7E,
336     
337     // AK_F16 (7F) F16 key
338     F16 = 0x7F,
339     
340     // AK_F17 (80H) F17 key
341     F17 = 0x80,
342     
343     // AK_F18 (81H) F18 key
344     F18 = 0x81,
345     
346     // AK_F19 (82H) F19 key
347     F19 = 0x82,
348     
349     // AK_F20 (83H) F20 key
350     F20 = 0x83,
351     
352     // AK_F21 (84H) F21 key
353     F21 = 0x84,
354     
355     // AK_F22 (85H) F22 key
356     F22 = 0x85,
357     
358     // AK_F23 (86H) F23 key
359     F23 = 0x86,
360     
361     // AK_F24 (87H) F24 key
362     F24 = 0x87,
363     
364     // AK_NUMLOCK (90) NUM LOCK key
365     NUMLOCK = 0x90,
366     
367     // AK_SCROLL (91) SCROLL LOCK key
368     SCROLL = 0x91,
369     
370     // AK_LSHIFT (A0) Left SHIFT key
371     LSHIFT = 0xA0,
372     
373     // AK_RSHIFT (A1) Right SHIFT key
374     RSHIFT = 0xA1,
375     
376     // AK_LCONTROL (A2) Left CONTROL key
377     LCONTROL = 0xA2,
378     
379     // AK_RCONTROL (A3) Right CONTROL key
380     RCONTROL = 0xA3,
381     
382     // AK_LMENU (A4) Left MENU key
383     LMENU = 0xA4,
384     
385     // AK_RMENU (A5) Right MENU key
386     RMENU = 0xA5,
387     
388     // AK_BROWSER_BACK (A6) Windows 2000/XP: Browser Back key
389     BROWSER_BACK = 0xA6,
390     
391     // AK_BROWSER_FORWARD (A7) Windows 2000/XP: Browser Forward key
392     BROWSER_FORWARD = 0xA7,
393     
394     // AK_BROWSER_REFRESH (A8) Windows 2000/XP: Browser Refresh key
395     BROWSER_REFRESH = 0xA8,
396     
397     // AK_BROWSER_STOP (A9) Windows 2000/XP: Browser Stop key
398     BROWSER_STOP = 0xA9,
399     
400     // AK_BROWSER_SEARCH (AA) Windows 2000/XP: Browser Search key
401     BROWSER_SEARCH = 0xAA,
402     
403     // AK_BROWSER_FAVORITES (AB) Windows 2000/XP: Browser Favorites key
404     BROWSER_FAVORITES = 0xAB,
405     
406     // AK_BROWSER_HOME (AC) Windows 2000/XP: Browser Start and Home key
407     BROWSER_HOME = 0xAC,
408     
409     // AK_VOLUME_MUTE (AD) Windows 2000/XP: Volume Mute key
410     VOLUME_MUTE = 0xAD,
411     
412     // AK_VOLUME_DOWN (AE) Windows 2000/XP: Volume Down key
413     VOLUME_DOWN = 0xAE,
414     
415     // AK_VOLUME_UP (AF) Windows 2000/XP: Volume Up key
416     VOLUME_UP = 0xAF,
417     
418     // AK_MEDIA_NEXT_TRACK (B0) Windows 2000/XP: Next Track key
419     MEDIA_NEXT_TRACK = 0xB0,
420     
421     // AK_MEDIA_PREV_TRACK (B1) Windows 2000/XP: Previous Track key
422     MEDIA_PREV_TRACK = 0xB1,
423     
424     // AK_MEDIA_STOP (B2) Windows 2000/XP: Stop Media key
425     MEDIA_STOP = 0xB2,
426     
427     // AK_MEDIA_PLAY_PAUSE (B3) Windows 2000/XP: Play/Pause Media key
428     MEDIA_PLAY_PAUSE = 0xB3,
429     
430     // AK_LAUNCH_MAIL (B4) Windows 2000/XP: Start Mail key
431     MEDIA_LAUNCH_MAIL = 0xB4,
432     
433     // AK_LAUNCH_MEDIA_SELECT (B5) Windows 2000/XP: Select Media key
434     MEDIA_LAUNCH_MEDIA_SELECT = 0xB5,
435     
436     // AK_LAUNCH_APP1 (B6) Windows 2000/XP: Start Application 1 key
437     MEDIA_LAUNCH_APP1 = 0xB6,
438     
439     // AK_LAUNCH_APP2 (B7) Windows 2000/XP: Start Application 2 key
440     MEDIA_LAUNCH_APP2 = 0xB7,
441     
442     // AK_OEM_1 (BA) Used for miscellaneous characters; it can vary by keyboard. Windows 2000/XP: For the US standard keyboard, the ';:' key
443     OEM_1 = 0xBA,
444     
445     // AK_OEM_PLUS (BB) Windows 2000/XP: For any country/region, the '+' key
446     OEM_PLUS = 0xBB,
447     
448     // AK_OEM_COMMA (BC) Windows 2000/XP: For any country/region, the ',' key
449     OEM_COMMA = 0xBC,
450     
451     // AK_OEM_MINUS (BD) Windows 2000/XP: For any country/region, the '-' key
452     OEM_MINUS = 0xBD,
453     
454     // AK_OEM_PERIOD (BE) Windows 2000/XP: For any country/region, the '.' key
455     OEM_PERIOD = 0xBE,
456     
457     // AK_OEM_2 (BF) Used for miscellaneous characters; it can vary by keyboard. Windows 2000/XP: For the US standard keyboard, the '/?' key
458     OEM_2 = 0xBF,
459     
460     // AK_OEM_3 (C0) Used for miscellaneous characters; it can vary by keyboard. Windows 2000/XP: For the US standard keyboard, the '`~' key
461     OEM_3 = 0xC0,
462     
463     // AK_OEM_4 (DB) Used for miscellaneous characters; it can vary by keyboard. Windows 2000/XP: For the US standard keyboard, the '[{' key
464     OEM_4 = 0xDB,
465     
466     // AK_OEM_5 (DC) Used for miscellaneous characters; it can vary by keyboard. Windows 2000/XP: For the US standard keyboard, the '\|' key
467     OEM_5 = 0xDC,
468     
469     // AK_OEM_6 (DD) Used for miscellaneous characters; it can vary by keyboard. Windows 2000/XP: For the US standard keyboard, the ']}' key
470     OEM_6 = 0xDD,
471     
472     // AK_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
473     OEM_7 = 0xDE,
474     
475     // AK_OEM_8 (DF) Used for miscellaneous characters; it can vary by keyboard.
476     OEM_8 = 0xDF,
477     
478     // AK_OEM_102 (E2) Windows 2000/XP: Either the angle bracket key or the backslash key on the RT 102-key keyboard
479     OEM_102 = 0xE2,
480     
481     // AK_PROCESSKEY (E5) Windows 95/98/Me, Windows NT 4.0, Windows 2000/XP: IME PROCESS key
482     PROCESSKEY = 0xE5,
483     
484     // AK_PACKET (E7) Windows 2000/XP: Used to pass Unicode characters as if they were keystrokes. The AK_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
485     PACKET = 0xE7,
486     
487     // AK_ATTN (F6) Attn key
488     ATTN = 0xF6,
489     
490     // AK_CRSEL (F7) CrSel key
491     CRSEL = 0xF7,
492     
493     // AK_EXSEL (F8) ExSel key
494     EXSEL = 0xF8,
495     
496     // AK_EREOF (F9) Erase EOF key
497     EREOF = 0xF9,
498     
499     // AK_PLAY (FA) Play key
500     PLAY = 0xFA,
501     
502     // AK_ZOOM (FB) Zoom key
503     ZOOM = 0xFB,
504 
505     // AK_NONAME (FC) Reserved for future use
506     NONAME = 0xFC,
507     
508     // AK_PA1 (FD) PA1 key
509     PA1 = 0xFD,
510     
511     // AK_OEM_CLEAR (FE) Clear key
512     OEM_CLEAR = 0xFE,
513     
514     UNKNOWN = 0,
515 }