OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_EVENTS_KEYCODES_KEYBOARD_CODES_WIN_H_ | 5 #ifndef UI_EVENTS_KEYCODES_KEYBOARD_CODES_WIN_H_ |
6 #define UI_EVENTS_KEYCODES_KEYBOARD_CODES_WIN_H_ | 6 #define UI_EVENTS_KEYCODES_KEYBOARD_CODES_WIN_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include <ime.h> | 9 #include <ime.h> |
10 | 10 |
11 namespace ui { | 11 namespace ui { |
12 | 12 |
13 enum KeyboardCode { | 13 enum KeyboardCode { |
| 14 VKEY_CANCEL = VK_CANCEL, |
14 VKEY_BACK = VK_BACK, | 15 VKEY_BACK = VK_BACK, |
15 VKEY_TAB = VK_TAB, | 16 VKEY_TAB = VK_TAB, |
16 VKEY_CLEAR = VK_CLEAR, | 17 VKEY_CLEAR = VK_CLEAR, |
17 VKEY_RETURN = VK_RETURN, | 18 VKEY_RETURN = VK_RETURN, |
18 VKEY_SHIFT = VK_SHIFT, | 19 VKEY_SHIFT = VK_SHIFT, |
19 VKEY_CONTROL = VK_CONTROL, | 20 VKEY_CONTROL = VK_CONTROL, |
20 VKEY_MENU = VK_MENU, // a.k.a. ALT | 21 VKEY_MENU = VK_MENU, // a.k.a. ALT |
21 VKEY_PAUSE = VK_PAUSE, | 22 VKEY_PAUSE = VK_PAUSE, |
22 VKEY_CAPITAL = VK_CAPITAL, | 23 VKEY_CAPITAL = VK_CAPITAL, |
23 VKEY_KANA = VK_KANA, | 24 VKEY_KANA = VK_KANA, |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 VKEY_UNKNOWN = 0, | 184 VKEY_UNKNOWN = 0, |
184 | 185 |
185 // Windows does not have a specific key code for AltGr. We use the unused | 186 // Windows does not have a specific key code for AltGr. We use the unused |
186 // VK_OEM_AX to represent AltGr, matching the behaviour of Firefox on Linux. | 187 // VK_OEM_AX to represent AltGr, matching the behaviour of Firefox on Linux. |
187 VKEY_ALTGR = VK_OEM_AX, | 188 VKEY_ALTGR = VK_OEM_AX, |
188 }; | 189 }; |
189 | 190 |
190 } // namespace ui | 191 } // namespace ui |
191 | 192 |
192 #endif // UI_EVENTS_KEYCODES_KEYBOARD_CODES_WIN_H_ | 193 #endif // UI_EVENTS_KEYCODES_KEYBOARD_CODES_WIN_H_ |
OLD | NEW |