summaryrefslogtreecommitdiffstats
path: root/ui/base/keycodes
diff options
context:
space:
mode:
authornona@chromium.org <nona@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-19 08:35:58 +0000
committernona@chromium.org <nona@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-19 08:35:58 +0000
commited60c4b23304bec5652dfd51b55dcbe7cf625abc (patch)
tree2ad0fa64a7d4ed8b4d28bb8b9203850c955fcbac /ui/base/keycodes
parent74057c9a0c8b438f4b5215564a0920ef8e011b02 (diff)
downloadchromium_src-ed60c4b23304bec5652dfd51b55dcbe7cf625abc.zip
chromium_src-ed60c4b23304bec5652dfd51b55dcbe7cf625abc.tar.gz
chromium_src-ed60c4b23304bec5652dfd51b55dcbe7cf625abc.tar.bz2
Add Level5Shift key support into KeyboardCodeConversion.
Without this conversion, key is rejected. BUG=None TEST=Manually confirmed the key is sent to web page. Review URL: https://chromiumcodereview.appspot.com/19194003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212542 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/base/keycodes')
-rw-r--r--ui/base/keycodes/keyboard_code_conversion_x.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/base/keycodes/keyboard_code_conversion_x.cc b/ui/base/keycodes/keyboard_code_conversion_x.cc
index f1c3e3a8..d47bb05 100644
--- a/ui/base/keycodes/keyboard_code_conversion_x.cc
+++ b/ui/base/keycodes/keyboard_code_conversion_x.cc
@@ -269,6 +269,8 @@ KeyboardCode KeyboardCodeFromXKeysym(unsigned int keysym) {
case XK_quoteright:
case XK_quotedbl:
return VKEY_OEM_7;
+ case XK_ISO_Level5_Shift:
+ return VKEY_OEM_8;
case XK_Shift_L:
case XK_Shift_R:
return VKEY_SHIFT;
@@ -711,6 +713,8 @@ int XKeysymForWindowsKeyCode(KeyboardCode keycode, bool shift) {
return shift ? XK_braceright : XK_bracketright;
case VKEY_OEM_7:
return shift ? XK_quotedbl : XK_quoteright;
+ case VKEY_OEM_8:
+ return XK_ISO_Level5_Shift;
case VKEY_OEM_102:
return shift ? XK_guillemotleft : XK_guillemotright;