Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Side by Side Diff: webkit/port/platform/chromium/KeyboardCodes.h

Issue 7633: First stab at webinputevent_linux.cc. Coverts GDK events to (Closed)
Patch Set: portish Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webkit/port/platform/chromium/KeyCodeConversionGtk.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
18 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27 #ifndef KeyboardCodes_h
28 #define KeyboardCodes_h
29
30 namespace WebCore {
31
32 // VK_LBUTTON (01) Left mouse button
33 // VK_RBUTTON (02) Right mouse button
34 // VK_CANCEL (03) Control-break processing
35 // VK_MBUTTON (04) Middle mouse button (three-button mouse)
36 // VK_XBUTTON1 (05)
37 // VK_XBUTTON2 (06)
38
39 // VK_BACK (08) BACKSPACE key
40 const int VK_BACK = 0x08;
41
42 // VK_TAB (09) TAB key
43 const int VK_TAB = 0x09;
44
45 // VK_CLEAR (0C) CLEAR key
46 const int VK_CLEAR = 0x0C;
47
48 // VK_RETURN (0D)
49 const int VK_RETURN = 0x0D;
50
51 // VK_SHIFT (10) SHIFT key
52 const int VK_SHIFT = 0x10;
53
54 // VK_CONTROL (11) CTRL key
55 const int VK_CONTROL = 0x11;
56
57 // VK_MENU (12) ALT key
58 const int VK_MENU = 0x12;
59
60 // VK_PAUSE (13) PAUSE key
61 const int VK_PAUSE = 0x13;
62
63 // VK_CAPITAL (14) CAPS LOCK key
64 const int VK_CAPITAL = 0x14;
65
66 // VK_KANA (15) Input Method Editor (IME) Kana mode
67 const int VK_KANA = 0x15;
68
69 // VK_HANGUEL (15) IME Hanguel mode (maintained for compatibility; use VK_HANGUL )
70 // VK_HANGUL (15) IME Hangul mode
71 const int VK_HANGUL = 0x15;
72
73 // VK_JUNJA (17) IME Junja mode
74 const int VK_JUNJA = 0x17;
75
76 // VK_FINAL (18) IME final mode
77 const int VK_FINAL = 0x18;
78
79 // VK_HANJA (19) IME Hanja mode
80 const int VK_HANJA = 0x19;
81
82 // VK_KANJI (19) IME Kanji mode
83 const int VK_KANJI = 0x19;
84
85 // VK_ESCAPE (1B) ESC key
86 const int VK_ESCAPE = 0x1B;
87
88 // VK_CONVERT (1C) IME convert
89 const int VK_CONVERT = 0x1C;
90
91 // VK_NONCONVERT (1D) IME nonconvert
92 const int VK_NONCONVERT = 0x1D;
93
94 // VK_ACCEPT (1E) IME accept
95 const int VK_ACCEPT = 0x1E;
96
97 // VK_MODECHANGE (1F) IME mode change request
98 const int VK_MODECHANGE = 0x1F;
99
100 // VK_SPACE (20) SPACEBAR
101 const int VK_SPACE = 0x20;
102
103 // VK_PRIOR (21) PAGE UP key
104 const int VK_PRIOR = 0x21;
105
106 // VK_NEXT (22) PAGE DOWN key
107 const int VK_NEXT = 0x22;
108
109 // VK_END (23) END key
110 const int VK_END = 0x23;
111
112 // VK_HOME (24) HOME key
113 const int VK_HOME = 0x24;
114
115 // VK_LEFT (25) LEFT ARROW key
116 const int VK_LEFT = 0x25;
117
118 // VK_UP (26) UP ARROW key
119 const int VK_UP = 0x26;
120
121 // VK_RIGHT (27) RIGHT ARROW key
122 const int VK_RIGHT = 0x27;
123
124 // VK_DOWN (28) DOWN ARROW key
125 const int VK_DOWN = 0x28;
126
127 // VK_SELECT (29) SELECT key
128 const int VK_SELECT = 0x29;
129
130 // VK_PRINT (2A) PRINT key
131 const int VK_PRINT = 0x2A;
132
133 // VK_EXECUTE (2B) EXECUTE key
134 const int VK_EXECUTE = 0x2B;
135
136 // VK_SNAPSHOT (2C) PRINT SCREEN key
137 const int VK_SNAPSHOT = 0x2C;
138
139 // VK_INSERT (2D) INS key
140 const int VK_INSERT = 0x2D;
141
142 // VK_DELETE (2E) DEL key
143 const int VK_DELETE = 0x2E;
144
145 // VK_HELP (2F) HELP key
146 const int VK_HELP = 0x2F;
147
148 // (30) 0 key
149 const int VK_0 = 0x30;
150
151 // (31) 1 key
152 const int VK_1 = 0x31;
153
154 // (32) 2 key
155 const int VK_2 = 0x32;
156
157 // (33) 3 key
158 const int VK_3 = 0x33;
159
160 // (34) 4 key
161 const int VK_4 = 0x34;
162
163 // (35) 5 key;
164
165 const int VK_5 = 0x35;
166
167 // (36) 6 key
168 const int VK_6 = 0x36;
169
170 // (37) 7 key
171 const int VK_7 = 0x37;
172
173 // (38) 8 key
174 const int VK_8 = 0x38;
175
176 // (39) 9 key
177 const int VK_9 = 0x39;
178
179 // (41) A key
180 const int VK_A = 0x41;
181
182 // (42) B key
183 const int VK_B = 0x42;
184
185 // (43) C key
186 const int VK_C = 0x43;
187
188 // (44) D key
189 const int VK_D = 0x44;
190
191 // (45) E key
192 const int VK_E = 0x45;
193
194 // (46) F key
195 const int VK_F = 0x46;
196
197 // (47) G key
198 const int VK_G = 0x47;
199
200 // (48) H key
201 const int VK_H = 0x48;
202
203 // (49) I key
204 const int VK_I = 0x49;
205
206 // (4A) J key
207 const int VK_J = 0x4A;
208
209 // (4B) K key
210 const int VK_K = 0x4B;
211
212 // (4C) L key
213 const int VK_L = 0x4C;
214
215 // (4D) M key
216 const int VK_M = 0x4D;
217
218 // (4E) N key
219 const int VK_N = 0x4E;
220
221 // (4F) O key
222 const int VK_O = 0x4F;
223
224 // (50) P key
225 const int VK_P = 0x50;
226
227 // (51) Q key
228 const int VK_Q = 0x51;
229
230 // (52) R key
231 const int VK_R = 0x52;
232
233 // (53) S key
234 const int VK_S = 0x53;
235
236 // (54) T key
237 const int VK_T = 0x54;
238
239 // (55) U key
240 const int VK_U = 0x55;
241
242 // (56) V key
243 const int VK_V = 0x56;
244
245 // (57) W key
246 const int VK_W = 0x57;
247
248 // (58) X key
249 const int VK_X = 0x58;
250
251 // (59) Y key
252 const int VK_Y = 0x59;
253
254 // (5A) Z key
255 const int VK_Z = 0x5A;
256
257 // VK_LWIN (5B) Left Windows key (Microsoft Natural keyboard)
258 const int VK_LWIN = 0x5B;
259
260 // VK_RWIN (5C) Right Windows key (Natural keyboard)
261 const int VK_RWIN = 0x5C;
262
263 // VK_APPS (5D) Applications key (Natural keyboard)
264 const int VK_APPS = 0x5D;
265
266 // VK_SLEEP (5F) Computer Sleep key
267 const int VK_SLEEP = 0x5F;
268
269 // VK_NUMPAD0 (60) Numeric keypad 0 key
270 const int VK_NUMPAD0 = 0x60;
271
272 // VK_NUMPAD1 (61) Numeric keypad 1 key
273 const int VK_NUMPAD1 = 0x61;
274
275 // VK_NUMPAD2 (62) Numeric keypad 2 key
276 const int VK_NUMPAD2 = 0x62;
277
278 // VK_NUMPAD3 (63) Numeric keypad 3 key
279 const int VK_NUMPAD3 = 0x63;
280
281 // VK_NUMPAD4 (64) Numeric keypad 4 key
282 const int VK_NUMPAD4 = 0x64;
283
284 // VK_NUMPAD5 (65) Numeric keypad 5 key
285 const int VK_NUMPAD5 = 0x65;
286
287 // VK_NUMPAD6 (66) Numeric keypad 6 key
288 const int VK_NUMPAD6 = 0x66;
289
290 // VK_NUMPAD7 (67) Numeric keypad 7 key
291 const int VK_NUMPAD7 = 0x67;
292
293 // VK_NUMPAD8 (68) Numeric keypad 8 key
294 const int VK_NUMPAD8 = 0x68;
295
296 // VK_NUMPAD9 (69) Numeric keypad 9 key
297 const int VK_NUMPAD9 = 0x69;
298
299 // VK_MULTIPLY (6A) Multiply key
300 const int VK_MULTIPLY = 0x6A;
301
302 // VK_ADD (6B) Add key
303 const int VK_ADD = 0x6B;
304
305 // VK_SEPARATOR (6C) Separator key
306 const int VK_SEPARATOR = 0x6C;
307
308 // VK_SUBTRACT (6D) Subtract key
309 const int VK_SUBTRACT = 0x6D;
310
311 // VK_DECIMAL (6E) Decimal key
312 const int VK_DECIMAL = 0x6E;
313
314 // VK_DIVIDE (6F) Divide key
315 const int VK_DIVIDE = 0x6F;
316
317 // VK_F1 (70) F1 key
318 const int VK_F1 = 0x70;
319
320 // VK_F2 (71) F2 key
321 const int VK_F2 = 0x71;
322
323 // VK_F3 (72) F3 key
324 const int VK_F3 = 0x72;
325
326 // VK_F4 (73) F4 key
327 const int VK_F4 = 0x73;
328
329 // VK_F5 (74) F5 key
330 const int VK_F5 = 0x74;
331
332 // VK_F6 (75) F6 key
333 const int VK_F6 = 0x75;
334
335 // VK_F7 (76) F7 key
336 const int VK_F7 = 0x76;
337
338 // VK_F8 (77) F8 key
339 const int VK_F8 = 0x77;
340
341 // VK_F9 (78) F9 key
342 const int VK_F9 = 0x78;
343
344 // VK_F10 (79) F10 key
345 const int VK_F10 = 0x79;
346
347 // VK_F11 (7A) F11 key
348 const int VK_F11 = 0x7A;
349
350 // VK_F12 (7B) F12 key
351 const int VK_F12 = 0x7B;
352
353 // VK_F13 (7C) F13 key
354 const int VK_F13 = 0x7C;
355
356 // VK_F14 (7D) F14 key
357 const int VK_F14 = 0x7D;
358
359 // VK_F15 (7E) F15 key
360 const int VK_F15 = 0x7E;
361
362 // VK_F16 (7F) F16 key
363 const int VK_F16 = 0x7F;
364
365 // VK_F17 (80H) F17 key
366 const int VK_F17 = 0x80;
367
368 // VK_F18 (81H) F18 key
369 const int VK_F18 = 0x81;
370
371 // VK_F19 (82H) F19 key
372 const int VK_F19 = 0x82;
373
374 // VK_F20 (83H) F20 key
375 const int VK_F20 = 0x83;
376
377 // VK_F21 (84H) F21 key
378 const int VK_F21 = 0x84;
379
380 // VK_F22 (85H) F22 key
381 const int VK_F22 = 0x85;
382
383 // VK_F23 (86H) F23 key
384 const int VK_F23 = 0x86;
385
386 // VK_F24 (87H) F24 key
387 const int VK_F24 = 0x87;
388
389 // VK_NUMLOCK (90) NUM LOCK key
390 const int VK_NUMLOCK = 0x90;
391
392 // VK_SCROLL (91) SCROLL LOCK key
393 const int VK_SCROLL = 0x91;
394
395 // VK_LSHIFT (A0) Left SHIFT key
396 const int VK_LSHIFT = 0xA0;
397
398 // VK_RSHIFT (A1) Right SHIFT key
399 const int VK_RSHIFT = 0xA1;
400
401 // VK_LCONTROL (A2) Left CONTROL key
402 const int VK_LCONTROL = 0xA2;
403
404 // VK_RCONTROL (A3) Right CONTROL key
405 const int VK_RCONTROL = 0xA3;
406
407 // VK_LMENU (A4) Left MENU key
408 const int VK_LMENU = 0xA4;
409
410 // VK_RMENU (A5) Right MENU key
411 const int VK_RMENU = 0xA5;
412
413 // VK_BROWSER_BACK (A6) Windows 2000/XP: Browser Back key
414 const int VK_BROWSER_BACK = 0xA6;
415
416 // VK_BROWSER_FORWARD (A7) Windows 2000/XP: Browser Forward key
417 const int VK_BROWSER_FORWARD = 0xA7;
418
419 // VK_BROWSER_REFRESH (A8) Windows 2000/XP: Browser Refresh key
420 const int VK_BROWSER_REFRESH = 0xA8;
421
422 // VK_BROWSER_STOP (A9) Windows 2000/XP: Browser Stop key
423 const int VK_BROWSER_STOP = 0xA9;
424
425 // VK_BROWSER_SEARCH (AA) Windows 2000/XP: Browser Search key
426 const int VK_BROWSER_SEARCH = 0xAA;
427
428 // VK_BROWSER_FAVORITES (AB) Windows 2000/XP: Browser Favorites key
429 const int VK_BROWSER_FAVORITES = 0xAB;
430
431 // VK_BROWSER_HOME (AC) Windows 2000/XP: Browser Start and Home key
432 const int VK_BROWSER_HOME = 0xAC;
433
434 // VK_VOLUME_MUTE (AD) Windows 2000/XP: Volume Mute key
435 const int VK_VOLUME_MUTE = 0xAD;
436
437 // VK_VOLUME_DOWN (AE) Windows 2000/XP: Volume Down key
438 const int VK_VOLUME_DOWN = 0xAE;
439
440 // VK_VOLUME_UP (AF) Windows 2000/XP: Volume Up key
441 const int VK_VOLUME_UP = 0xAF;
442
443 // VK_MEDIA_NEXT_TRACK (B0) Windows 2000/XP: Next Track key
444 const int VK_MEDIA_NEXT_TRACK = 0xB0;
445
446 // VK_MEDIA_PREV_TRACK (B1) Windows 2000/XP: Previous Track key
447 const int VK_MEDIA_PREV_TRACK = 0xB1;
448
449 // VK_MEDIA_STOP (B2) Windows 2000/XP: Stop Media key
450 const int VK_MEDIA_STOP = 0xB2;
451
452 // VK_MEDIA_PLAY_PAUSE (B3) Windows 2000/XP: Play/Pause Media key
453 const int VK_MEDIA_PLAY_PAUSE = 0xB3;
454
455 // VK_LAUNCH_MAIL (B4) Windows 2000/XP: Start Mail key
456 const int VK_MEDIA_LAUNCH_MAIL = 0xB4;
457
458 // VK_LAUNCH_MEDIA_SELECT (B5) Windows 2000/XP: Select Media key
459 const int VK_MEDIA_LAUNCH_MEDIA_SELECT = 0xB5;
460
461 // VK_LAUNCH_APP1 (B6) Windows 2000/XP: Start Application 1 key
462 const int VK_MEDIA_LAUNCH_APP1 = 0xB6;
463
464 // VK_LAUNCH_APP2 (B7) Windows 2000/XP: Start Application 2 key
465 const int VK_MEDIA_LAUNCH_APP2 = 0xB7;
466
467 // VK_OEM_1 (BA) Used for miscellaneous characters; it can vary by keyboard. Win dows 2000/XP: For the US standard keyboard, the ';:' key
468 const int VK_OEM_1 = 0xBA;
469
470 // VK_OEM_PLUS (BB) Windows 2000/XP: For any country/region, the '+' key
471 const int VK_OEM_PLUS = 0xBB;
472
473 // VK_OEM_COMMA (BC) Windows 2000/XP: For any country/region, the ',' key
474 const int VK_OEM_COMMA = 0xBC;
475
476 // VK_OEM_MINUS (BD) Windows 2000/XP: For any country/region, the '-' key
477 const int VK_OEM_MINUS = 0xBD;
478
479 // VK_OEM_PERIOD (BE) Windows 2000/XP: For any country/region, the '.' key
480 const int VK_OEM_PERIOD = 0xBE;
481
482 // VK_OEM_2 (BF) Used for miscellaneous characters; it can vary by keyboard. Win dows 2000/XP: For the US standard keyboard, the '/?' key
483 const int VK_OEM_2 = 0xBF;
484
485 // VK_OEM_3 (C0) Used for miscellaneous characters; it can vary by keyboard. Win dows 2000/XP: For the US standard keyboard, the '`~' key
486 const int VK_OEM_3 = 0xC0;
487
488 // VK_OEM_4 (DB) Used for miscellaneous characters; it can vary by keyboard. Win dows 2000/XP: For the US standard keyboard, the '[{' key
489 const int VK_OEM_4 = 0xDB;
490
491 // VK_OEM_5 (DC) Used for miscellaneous characters; it can vary by keyboard. Win dows 2000/XP: For the US standard keyboard, the '\|' key
492 const int VK_OEM_5 = 0xDC;
493
494 // VK_OEM_6 (DD) Used for miscellaneous characters; it can vary by keyboard. Win dows 2000/XP: For the US standard keyboard, the ']}' key
495 const int VK_OEM_6 = 0xDD;
496
497 // VK_OEM_7 (DE) Used for miscellaneous characters; it can vary by keyboard. Win dows 2000/XP: For the US standard keyboard, the 'single-quote/double-quote' key
498 const int VK_OEM_7 = 0xDE;
499
500 // VK_OEM_8 (DF) Used for miscellaneous characters; it can vary by keyboard.
501 const int VK_OEM_8 = 0xDF;
502
503 // VK_OEM_102 (E2) Windows 2000/XP: Either the angle bracket key or the backslas h key on the RT 102-key keyboard
504 const int VK_OEM_102 = 0xE2;
505
506 // VK_PROCESSKEY (E5) Windows 95/98/Me, Windows NT 4.0, Windows 2000/XP: IME PRO CESS key
507 const int VK_PROCESSKEY = 0xE5;
508
509 // VK_PACKET (E7) Windows 2000/XP: Used to pass Unicode characters as if they we re keystrokes. The VK_PACKET key is the low word of a 32-bit Virtual Key value u sed for non-keyboard input methods. For more information, see Remark in KEYBDINP UT,SendInput, WM_KEYDOWN, and WM_KEYUP
510 const int VK_PACKET = 0xE7;
511
512 // VK_ATTN (F6) Attn key
513 const int VK_ATTN = 0xF6;
514
515 // VK_CRSEL (F7) CrSel key
516 const int VK_CRSEL = 0xF7;
517
518 // VK_EXSEL (F8) ExSel key
519 const int VK_EXSEL = 0xF8;
520
521 // VK_EREOF (F9) Erase EOF key
522 const int VK_EREOF = 0xF9;
523
524 // VK_PLAY (FA) Play key
525 const int VK_PLAY = 0xFA;
526
527 // VK_ZOOM (FB) Zoom key
528 const int VK_ZOOM = 0xFB;
529
530 // VK_NONAME (FC) Reserved for future use
531 const int VK_NONAME = 0xFC;
532
533 // VK_PA1 (FD) PA1 key
534 const int VK_PA1 = 0xFD;
535
536 // VK_OEM_CLEAR (FE) Clear key
537 const int VK_OEM_CLEAR = 0xFE;
538
539 const int VK_UNKNOWN = 0;
540
541 }
542
543 #endif
OLDNEW
« no previous file with comments | « webkit/port/platform/chromium/KeyCodeConversionGtk.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698