Update to latest Chromium maps
This commit is contained in:
Родитель
0e43c25ded
Коммит
c97bdb9138
|
@ -1,3 +1,5 @@
|
|||
// [13.12.2016] https://cs.chromium.org/chromium/src/ui/events/keycodes/keyboard_code_conversion_mac.mm
|
||||
|
||||
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
@ -12,6 +14,11 @@
|
|||
|
||||
namespace ui {
|
||||
|
||||
// This value is not defined but shows up as 0x36.
|
||||
const int kVK_RightCommand = 0x36;
|
||||
// Context menu is not defined but shows up as 0x6E.
|
||||
const int kVK_ContextMenu = 0x6E;
|
||||
|
||||
// A struct to hold a Windows keycode to Mac virtual keycode mapping.
|
||||
struct KeyCodeMap {
|
||||
KeyboardCode keycode;
|
||||
|
@ -97,8 +104,8 @@ const KeyCodeMap kKeyCodesMap[] = {
|
|||
{ VKEY_Y /* 0x59 */, kVK_ANSI_Y, 'y' },
|
||||
{ VKEY_Z /* 0x5A */, kVK_ANSI_Z, 'z' },
|
||||
{ VKEY_LWIN /* 0x5B */, kVK_Command, 0 },
|
||||
{ VKEY_RWIN /* 0x5C */, 0x36, 0 },
|
||||
{ VKEY_APPS /* 0x5D */, 0x36, 0 },
|
||||
{ VKEY_RWIN /* 0x5C */, kVK_RightCommand, 0 },
|
||||
{ VKEY_APPS /* 0x5D */, kVK_RightCommand, 0 },
|
||||
{ VKEY_SLEEP /* 0x5F */, -1, 0 },
|
||||
{ VKEY_NUMPAD0 /* 0x60 */, kVK_ANSI_Keypad0, '0' },
|
||||
{ VKEY_NUMPAD1 /* 0x61 */, kVK_ANSI_Keypad1, '1' },
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// [13.12.2016] https://cs.chromium.org/chromium/src/ui/events/keycodes/keyboard_codes_win.h
|
||||
|
||||
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
@ -34,6 +36,7 @@
|
|||
namespace ui {
|
||||
|
||||
enum KeyboardCode {
|
||||
VKEY_CANCEL = 0x03,
|
||||
VKEY_BACK = 0x08,
|
||||
VKEY_TAB = 0x09,
|
||||
VKEY_BACKTAB = 0x0A,
|
||||
|
@ -195,9 +198,13 @@ enum KeyboardCode {
|
|||
VKEY_OEM_104 = 0xE4, // GTV KEYCODE_MEDIA_FAST_FORWARD
|
||||
VKEY_PROCESSKEY = 0xE5,
|
||||
VKEY_PACKET = 0xE7,
|
||||
VKEY_DBE_SBCSCHAR = 0xF3,
|
||||
VKEY_DBE_DBCSCHAR = 0xF4,
|
||||
VKEY_ATTN = 0xF6,
|
||||
VKEY_OEM_ATTN = 0xF0, // JIS DomKey::ALPHANUMERIC
|
||||
VKEY_OEM_FINISH = 0xF1, // JIS DomKey::KATAKANA
|
||||
VKEY_OEM_COPY = 0xF2, // JIS DomKey::HIRAGANA
|
||||
VKEY_DBE_SBCSCHAR = 0xF3, // JIS DomKey::HANKAKU
|
||||
VKEY_DBE_DBCSCHAR = 0xF4, // JIS DomKey::ZENKAKU
|
||||
VKEY_OEM_BACKTAB = 0xF5, // JIS DomKey::ROMAJI
|
||||
VKEY_ATTN = 0xF6, // DomKey::ATTN or JIS DomKey::KANA_MODE
|
||||
VKEY_CRSEL = 0xF7,
|
||||
VKEY_EXSEL = 0xF8,
|
||||
VKEY_EREOF = 0xF9,
|
||||
|
@ -226,6 +233,6 @@ enum KeyboardCode {
|
|||
VKEY_COMPOSE = 0xE6,
|
||||
};
|
||||
|
||||
} // namespace vscode_keyboard
|
||||
} // namespace ui
|
||||
|
||||
#endif // UI_EVENTS_KEYCODES_KEYBOARD_CODES_POSIX_H_
|
|
@ -1,3 +1,5 @@
|
|||
// [13.12.2016] https://cs.chromium.org/chromium/src/ui/events/keycodes/keyboard_codes_win.h
|
||||
|
||||
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
@ -11,6 +13,7 @@
|
|||
namespace ui {
|
||||
|
||||
enum KeyboardCode {
|
||||
VKEY_CANCEL = VK_CANCEL,
|
||||
VKEY_BACK = VK_BACK,
|
||||
VKEY_TAB = VK_TAB,
|
||||
VKEY_CLEAR = VK_CLEAR,
|
||||
|
@ -169,8 +172,12 @@ enum KeyboardCode {
|
|||
VKEY_OEM_102 = VK_OEM_102,
|
||||
VKEY_PROCESSKEY = VK_PROCESSKEY,
|
||||
VKEY_PACKET = VK_PACKET,
|
||||
VKEY_OEM_ATTN = VK_OEM_ATTN,
|
||||
VKEY_OEM_FINISH = VK_OEM_FINISH,
|
||||
VKEY_OEM_COPY = VK_OEM_COPY,
|
||||
VKEY_DBE_SBCSCHAR = VK_DBE_SBCSCHAR,
|
||||
VKEY_DBE_DBCSCHAR = VK_DBE_DBCSCHAR,
|
||||
VKEY_OEM_BACKTAB = VK_OEM_BACKTAB,
|
||||
VKEY_ATTN = VK_ATTN,
|
||||
VKEY_CRSEL = VK_CRSEL,
|
||||
VKEY_EXSEL = VK_EXSEL,
|
||||
|
@ -187,6 +194,6 @@ enum KeyboardCode {
|
|||
VKEY_ALTGR = VK_OEM_AX,
|
||||
};
|
||||
|
||||
} // namespace vscode_keyboard
|
||||
} // namespace ui
|
||||
|
||||
#endif // UI_EVENTS_KEYCODES_KEYBOARD_CODES_WIN_H_
|
|
@ -1,3 +1,5 @@
|
|||
// [13.12.2016] https://cs.chromium.org/chromium/src/chrome/test/chromedriver/keycode_text_conversion_x.cc
|
||||
|
||||
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// [13.12.2016] https://cs.chromium.org/chromium/src/ui/events/keycodes/keysym_to_unicode.cc
|
||||
|
||||
// Copyright 2014 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// [13.12.2016] https://cs.chromium.org/chromium/src/ui/events/keycodes/keysym_to_unicode.h
|
||||
|
||||
// Copyright 2014 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
|
Загрузка…
Ссылка в новой задаче