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

Unified Diff: ui/events/keycodes/dom_us_layout_data.h

Issue 1108893002: Revise DOM Level 3 US Layout maps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/events/keycodes/keyboard_code_conversion_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/keycodes/dom_us_layout_data.h
diff --git a/ui/events/keycodes/dom_us_layout_data.h b/ui/events/keycodes/dom_us_layout_data.h
index c85aef2b85d31960edae46596ad2ca5530ebc8fb..6af5d477882786df24064106f55d9d388736d326 100644
--- a/ui/events/keycodes/dom_us_layout_data.h
+++ b/ui/events/keycodes/dom_us_layout_data.h
@@ -60,7 +60,7 @@ const struct PrintableCodeEntry {
{DomCode::COMMA, {',', '<'}},
{DomCode::PERIOD, {'.', '>'}},
{DomCode::SLASH, {'/', '?'}},
- {DomCode::INTL_BACKSLASH, {'\\', '|'}},
+ {DomCode::INTL_BACKSLASH, {'<', '>'}},
Wez 2015/04/28 00:28:04 Why do we need this and INTL_YEN, below, if this i
kpschoedel 2015/04/28 17:03:45 The keys are normally supported in US layouts, whe
Wez 2015/05/05 00:16:00 Mapping from VKEY to |code| is a legacy-compatibil
kpschoedel 2015/05/05 18:47:02 Acknowledged — will keep GetCharacterFromKeyCode()
{DomCode::INTL_YEN, {0x00A5, '|'}},
{DomCode::NUMPAD_DIVIDE, {'/', '/'}},
{DomCode::NUMPAD_MULTIPLY, {'*', '*'}},
@@ -580,7 +580,6 @@ const struct DomCodeToKeyboardCodeEntry {
const DomCodeToKeyboardCodeEntry kFallbackKeyboardCodeToDomCodeMap[] = {
{DomCode::ALT_LEFT, VKEY_MENU},
{DomCode::ALT_RIGHT, VKEY_ALTGR},
- {DomCode::BACKQUOTE, VKEY_DBE_SBCSCHAR},
#if defined(OS_POSIX)
{DomCode::CONTEXT_MENU, VKEY_COMPOSE},
#endif
@@ -589,11 +588,12 @@ const DomCodeToKeyboardCodeEntry kFallbackKeyboardCodeToDomCodeMap[] = {
{DomCode::LANG2, VKEY_HANJA},
{DomCode::LANG5, VKEY_DBE_DBCSCHAR},
{DomCode::NUMPAD_CLEAR, VKEY_OEM_CLEAR},
+ {DomCode::NUMPAD_DECIMAL, VKEY_SEPARATOR},
{DomCode::PROPS, VKEY_CRSEL},
{DomCode::SHIFT_LEFT, VKEY_SHIFT},
{DomCode::SUPER, VKEY_OEM_8},
//
- // VKEYs with no existing corresponding DomCode, but a USB usage code:
+ // VKEYs with no directly corresponding DomCode, but a USB usage code:
Wez 2015/04/28 00:28:04 Why do we have a DomCode::<name> in the comment fo
kpschoedel 2015/04/28 17:03:45 Left over from the (scripted) table entries. Remov
// {DomCode::SYS_REQ, VKEY_ATTN}, // 0x07009A SysReq
// {DomCode::SEPARATOR, VKEY_SEPARATOR}, // 0x07009F Separator
Wez 2015/04/28 00:28:04 Remove this?
kpschoedel 2015/04/28 17:03:45 Done.
// {DomCode::EX_SEL, VKEY_EXSEL}, // 0x0700A4 ExSel
@@ -603,20 +603,23 @@ const DomCodeToKeyboardCodeEntry kFallbackKeyboardCodeToDomCodeMap[] = {
// {DomCode::MEDIA_FAST_FORWARD, VKEY_OEM_104},
// // 0x0C00B3 MediaFastForward
//
+ // VKEYs with no corresponding DomCode, but a Linux evdev usage code:
+ // VKEY_KBD_BRIGHTNESS_DOWN // evdev KEY_KBDILLUMDOWN
+ // VKEY_KBD_BRIGHTNESS_UP // evdev KEY_KBDILLUMUP
+ // VKEY_WLAN // evdev KEY_WLAN
+ //
// VKEYs with no corresponding DomCode and no obvious USB usage code:
// VKEY_ACCEPT
// VKEY_BACKTAB
+ // VKEY_DBE_SBCSCHAR
// VKEY_EREOF
// VKEY_FINAL
// VKEY_JUNJA
- // VKEY_KBD_BRIGHTNESS_DOWN
- // VKEY_KBD_BRIGHTNESS_UP
// VKEY_MODECHANGE
// VKEY_NONAME
// VKEY_PA1
// VKEY_PACKET
// VKEY_PROCESSKEY
- // VKEY_WLAN
};
} // namespace ui
« no previous file with comments | « no previous file | ui/events/keycodes/keyboard_code_conversion_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698