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
3 // found in the LICENSE file.
5 #ifndef UI_EVENTS_KEYCODES_KEYBOARD_CODES_WIN_H_
6 #define UI_EVENTS_KEYCODES_KEYBOARD_CODES_WIN_H_
16 VKEY_CLEAR
= VK_CLEAR
,
17 VKEY_RETURN
= VK_RETURN
,
18 VKEY_SHIFT
= VK_SHIFT
,
19 VKEY_CONTROL
= VK_CONTROL
,
20 VKEY_MENU
= VK_MENU
, // a.k.a. ALT
21 VKEY_PAUSE
= VK_PAUSE
,
22 VKEY_CAPITAL
= VK_CAPITAL
,
24 VKEY_HANGUL
= VK_HANGUL
,
25 VKEY_JUNJA
= VK_JUNJA
,
26 VKEY_FINAL
= VK_FINAL
,
27 VKEY_HANJA
= VK_HANJA
,
28 VKEY_KANJI
= VK_KANJI
,
29 VKEY_ESCAPE
= VK_ESCAPE
,
30 VKEY_CONVERT
= VK_CONVERT
,
31 VKEY_NONCONVERT
= VK_NONCONVERT
,
32 VKEY_ACCEPT
= VK_ACCEPT
,
33 VKEY_MODECHANGE
= VK_MODECHANGE
,
34 VKEY_SPACE
= VK_SPACE
,
35 VKEY_PRIOR
= VK_PRIOR
,
41 VKEY_RIGHT
= VK_RIGHT
,
43 VKEY_SELECT
= VK_SELECT
,
44 VKEY_PRINT
= VK_PRINT
,
45 VKEY_EXECUTE
= VK_EXECUTE
,
46 VKEY_SNAPSHOT
= VK_SNAPSHOT
,
47 VKEY_INSERT
= VK_INSERT
,
48 VKEY_DELETE
= VK_DELETE
,
87 VKEY_COMMAND
= VKEY_LWIN
, // Provide the Mac name for convenience.
90 VKEY_SLEEP
= VK_SLEEP
,
91 VKEY_NUMPAD0
= VK_NUMPAD0
,
92 VKEY_NUMPAD1
= VK_NUMPAD1
,
93 VKEY_NUMPAD2
= VK_NUMPAD2
,
94 VKEY_NUMPAD3
= VK_NUMPAD3
,
95 VKEY_NUMPAD4
= VK_NUMPAD4
,
96 VKEY_NUMPAD5
= VK_NUMPAD5
,
97 VKEY_NUMPAD6
= VK_NUMPAD6
,
98 VKEY_NUMPAD7
= VK_NUMPAD7
,
99 VKEY_NUMPAD8
= VK_NUMPAD8
,
100 VKEY_NUMPAD9
= VK_NUMPAD9
,
101 VKEY_MULTIPLY
= VK_MULTIPLY
,
103 VKEY_SEPARATOR
= VK_SEPARATOR
,
104 VKEY_SUBTRACT
= VK_SUBTRACT
,
105 VKEY_DECIMAL
= VK_DECIMAL
,
106 VKEY_DIVIDE
= VK_DIVIDE
,
131 VKEY_NUMLOCK
= VK_NUMLOCK
,
132 VKEY_SCROLL
= VK_SCROLL
,
133 VKEY_LSHIFT
= VK_LSHIFT
,
134 VKEY_RSHIFT
= VK_RSHIFT
,
135 VKEY_LCONTROL
= VK_LCONTROL
,
136 VKEY_RCONTROL
= VK_RCONTROL
,
137 VKEY_LMENU
= VK_LMENU
,
138 VKEY_RMENU
= VK_RMENU
,
139 VKEY_BROWSER_BACK
= VK_BROWSER_BACK
,
140 VKEY_BROWSER_FORWARD
= VK_BROWSER_FORWARD
,
141 VKEY_BROWSER_REFRESH
= VK_BROWSER_REFRESH
,
142 VKEY_BROWSER_STOP
= VK_BROWSER_STOP
,
143 VKEY_BROWSER_SEARCH
= VK_BROWSER_SEARCH
,
144 VKEY_BROWSER_FAVORITES
= VK_BROWSER_FAVORITES
,
145 VKEY_BROWSER_HOME
= VK_BROWSER_HOME
,
146 VKEY_VOLUME_MUTE
= VK_VOLUME_MUTE
,
147 VKEY_VOLUME_DOWN
= VK_VOLUME_DOWN
,
148 VKEY_VOLUME_UP
= VK_VOLUME_UP
,
149 VKEY_MEDIA_NEXT_TRACK
= VK_MEDIA_NEXT_TRACK
,
150 VKEY_MEDIA_PREV_TRACK
= VK_MEDIA_PREV_TRACK
,
151 VKEY_MEDIA_STOP
= VK_MEDIA_STOP
,
152 VKEY_MEDIA_PLAY_PAUSE
= VK_MEDIA_PLAY_PAUSE
,
153 VKEY_MEDIA_LAUNCH_MAIL
= 0xB4,
154 VKEY_MEDIA_LAUNCH_MEDIA_SELECT
= 0xB5,
155 VKEY_MEDIA_LAUNCH_APP1
= 0xB6,
156 VKEY_MEDIA_LAUNCH_APP2
= 0xB7,
157 VKEY_OEM_1
= VK_OEM_1
,
158 VKEY_OEM_PLUS
= VK_OEM_PLUS
,
159 VKEY_OEM_COMMA
= VK_OEM_COMMA
,
160 VKEY_OEM_MINUS
= VK_OEM_MINUS
,
161 VKEY_OEM_PERIOD
= VK_OEM_PERIOD
,
162 VKEY_OEM_2
= VK_OEM_2
,
163 VKEY_OEM_3
= VK_OEM_3
,
164 VKEY_OEM_4
= VK_OEM_4
,
165 VKEY_OEM_5
= VK_OEM_5
,
166 VKEY_OEM_6
= VK_OEM_6
,
167 VKEY_OEM_7
= VK_OEM_7
,
168 VKEY_OEM_8
= VK_OEM_8
,
169 VKEY_OEM_102
= VK_OEM_102
,
170 VKEY_PROCESSKEY
= VK_PROCESSKEY
,
171 VKEY_PACKET
= VK_PACKET
,
172 VKEY_DBE_SBCSCHAR
= VK_DBE_SBCSCHAR
,
173 VKEY_DBE_DBCSCHAR
= VK_DBE_DBCSCHAR
,
175 VKEY_CRSEL
= VK_CRSEL
,
176 VKEY_EXSEL
= VK_EXSEL
,
177 VKEY_EREOF
= VK_EREOF
,
180 VKEY_NONAME
= VK_NONAME
,
182 VKEY_OEM_CLEAR
= VK_OEM_CLEAR
,
185 // 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 VKEY_ALTGR
= VK_OEM_AX
,
192 #endif // UI_EVENTS_KEYCODES_KEYBOARD_CODES_WIN_H_