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

Unified Diff: ui/base/keycodes/keyboard_code_conversion_x.cc

Issue 10879023: Add VKEY_POWER to the POSIX KeyboardCode enum. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/base/keycodes/keyboard_codes_posix.h » ('j') | ui/base/keycodes/keyboard_codes_posix.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/keycodes/keyboard_code_conversion_x.cc
diff --git a/ui/base/keycodes/keyboard_code_conversion_x.cc b/ui/base/keycodes/keyboard_code_conversion_x.cc
index 2bfedb8a8dcbdbd0473b8c238fcbd791e8ab3ae7..3548dcf8453eceffe3c722786c68b5a571f6e2ae 100644
--- a/ui/base/keycodes/keyboard_code_conversion_x.cc
+++ b/ui/base/keycodes/keyboard_code_conversion_x.cc
@@ -388,6 +388,8 @@ KeyboardCode KeyboardCodeFromXKeysym(unsigned int keysym) {
return VKEY_MEDIA_LAUNCH_APP2;
case XF86XK_WLAN:
return VKEY_WLAN;
+ case XF86XK_PowerOff:
+ return VKEY_POWER;
case XF86XK_MonBrightnessDown:
return VKEY_BRIGHTNESS_DOWN;
case XF86XK_MonBrightnessUp:
@@ -744,6 +746,8 @@ int XKeysymForWindowsKeyCode(KeyboardCode keycode, bool shift) {
return XF86XK_LaunchB;
case VKEY_WLAN:
return XF86XK_WLAN;
+ case VKEY_POWER:
+ return XF86XK_PowerOff;
case VKEY_BRIGHTNESS_DOWN:
return XF86XK_MonBrightnessDown;
case VKEY_BRIGHTNESS_UP:
« no previous file with comments | « no previous file | ui/base/keycodes/keyboard_codes_posix.h » ('j') | ui/base/keycodes/keyboard_codes_posix.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698