diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-06 02:37:41 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-06 02:37:41 +0000 |
commit | eaf5f4257dbd59f39396150ed54a9f66fcfe358c (patch) | |
tree | 4055bb6670b23d00c6ad0914a004468ad35025a6 | |
parent | fe78b8ce39d0721c806a375811406291f3f9d67a (diff) | |
download | chromium_src-eaf5f4257dbd59f39396150ed54a9f66fcfe358c.zip chromium_src-eaf5f4257dbd59f39396150ed54a9f66fcfe358c.tar.gz chromium_src-eaf5f4257dbd59f39396150ed54a9f66fcfe358c.tar.bz2 |
Aura: Convert keysym to kyeycode when posting XKeyEvent
BUG=104396
TEST=more tests passes in interactive_ui_tests passes on aura
Review URL: http://codereview.chromium.org/8808001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113092 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/automation/ui_controls_aurax11.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/automation/ui_controls_aurax11.cc b/chrome/browser/automation/ui_controls_aurax11.cc index 1ab2747..d7dbe69 100644 --- a/chrome/browser/automation/ui_controls_aurax11.cc +++ b/chrome/browser/automation/ui_controls_aurax11.cc @@ -133,7 +133,9 @@ bool SendKeyPressNotifyWhenDone(gfx::NativeWindow window, SetMaskAndKeycodeThenSend(&xevent, ShiftMask, XK_Shift_L); if (alt) SetMaskAndKeycodeThenSend(&xevent, Mod1Mask, XK_Alt_L); - xevent.xkey.keycode = ui::XKeysymForWindowsKeyCode(key, shift); + xevent.xkey.keycode = + XKeysymToKeycode(base::MessagePumpX::GetDefaultXDisplay(), + ui::XKeysymForWindowsKeyCode(key, shift)); aura::Desktop::GetInstance()->PostNativeEvent(&xevent); // Send key release events. |