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.
6 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com. All rights reserved.
7 * Copyright (C) 2008, 2009 Google Inc.
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright
15 * notice, this list of conditions and the following disclaimer in the
16 * documentation and/or other materials provided with the distribution.
18 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
19 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
22 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, LOSS OF USE, DATA, OR
25 * PROFITS, OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
26 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 #ifndef UI_EVENTS_KEYCODES_KEYBOARD_CODES_POSIX_H_
32 #define UI_EVENTS_KEYCODES_KEYBOARD_CODES_POSIX_H_
55 VKEY_NONCONVERT
= 0x1D,
57 VKEY_MODECHANGE
= 0x1F,
111 VKEY_COMMAND
= VKEY_LWIN
, // Provide the Mac name for convenience.
125 VKEY_MULTIPLY
= 0x6A,
127 VKEY_SEPARATOR
= 0x6C,
128 VKEY_SUBTRACT
= 0x6D,
159 VKEY_LCONTROL
= 0xA2,
160 VKEY_RCONTROL
= 0xA3,
163 VKEY_BROWSER_BACK
= 0xA6,
164 VKEY_BROWSER_FORWARD
= 0xA7,
165 VKEY_BROWSER_REFRESH
= 0xA8,
166 VKEY_BROWSER_STOP
= 0xA9,
167 VKEY_BROWSER_SEARCH
= 0xAA,
168 VKEY_BROWSER_FAVORITES
= 0xAB,
169 VKEY_BROWSER_HOME
= 0xAC,
170 VKEY_VOLUME_MUTE
= 0xAD,
171 VKEY_VOLUME_DOWN
= 0xAE,
172 VKEY_VOLUME_UP
= 0xAF,
173 VKEY_MEDIA_NEXT_TRACK
= 0xB0,
174 VKEY_MEDIA_PREV_TRACK
= 0xB1,
175 VKEY_MEDIA_STOP
= 0xB2,
176 VKEY_MEDIA_PLAY_PAUSE
= 0xB3,
177 VKEY_MEDIA_LAUNCH_MAIL
= 0xB4,
178 VKEY_MEDIA_LAUNCH_MEDIA_SELECT
= 0xB5,
179 VKEY_MEDIA_LAUNCH_APP1
= 0xB6,
180 VKEY_MEDIA_LAUNCH_APP2
= 0xB7,
182 VKEY_OEM_PLUS
= 0xBB,
183 VKEY_OEM_COMMA
= 0xBC,
184 VKEY_OEM_MINUS
= 0xBD,
185 VKEY_OEM_PERIOD
= 0xBE,
194 VKEY_OEM_103
= 0xE3, // GTV KEYCODE_MEDIA_REWIND
195 VKEY_OEM_104
= 0xE4, // GTV KEYCODE_MEDIA_FAST_FORWARD
196 VKEY_PROCESSKEY
= 0xE5,
198 VKEY_DBE_SBCSCHAR
= 0xF3,
199 VKEY_DBE_DBCSCHAR
= 0xF4,
208 VKEY_OEM_CLEAR
= 0xFE,
211 // POSIX specific VKEYs. Note that as of Windows SDK 7.1, 0x97-9F, 0xD8-DA,
212 // and 0xE8 are unassigned.
215 VKEY_BRIGHTNESS_DOWN
= 0xD8,
216 VKEY_BRIGHTNESS_UP
= 0xD9,
217 VKEY_KBD_BRIGHTNESS_DOWN
= 0xDA,
218 VKEY_KBD_BRIGHTNESS_UP
= 0xE8,
220 // Windows does not have a specific key code for AltGr. We use the unused 0xE1
221 // (VK_OEM_AX) code to represent AltGr, matching the behaviour of Firefox on
224 // Windows does not have a specific key code for Compose. We use the unused
225 // 0xE6 (VK_ICO_CLEAR) code to represent Compose.
231 #endif // UI_EVENTS_KEYCODES_KEYBOARD_CODES_POSIX_H_