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

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

Issue 954943003: [KeyboardEvent] Use DOM |code| rather than Windows-based key code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added missing VKEY in windows for brightness and power Created 5 years, 10 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 | « ui/events/keycodes/keyboard_code_conversion_xkb.cc ('k') | ui/events/keycodes/xkb_keysym.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/keycodes/keyboard_codes_win.h
diff --git a/ui/events/keycodes/keyboard_codes_win.h b/ui/events/keycodes/keyboard_codes_win.h
index 396d38bea7ef4ec48068746f6acb41fed14f0edd..a2bb6452a9048dee2676e26b3d8b5043f82b35f0 100644
--- a/ui/events/keycodes/keyboard_codes_win.h
+++ b/ui/events/keycodes/keyboard_codes_win.h
@@ -182,6 +182,11 @@ enum KeyboardCode {
VKEY_OEM_CLEAR = VK_OEM_CLEAR,
VKEY_UNKNOWN = 0,
+ // These keys are defined in POSIX but not in Windows
+ VKEY_POWER = VKEY_UNKNOWN,
+ VKEY_BRIGHTNESS_DOWN = VKEY_UNKNOWN,
+ VKEY_BRIGHTNESS_UP = VKEY_UNKNOWN,
+
// Windows does not have a specific key code for AltGr. We use the unused
// VK_OEM_AX to represent AltGr, matching the behaviour of Firefox on Linux.
VKEY_ALTGR = VK_OEM_AX,
« no previous file with comments | « ui/events/keycodes/keyboard_code_conversion_xkb.cc ('k') | ui/events/keycodes/xkb_keysym.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698