Commit 4eb669c6 authored by oshima@chromium.org's avatar oshima@chromium.org

Aura: Convert keysym to kyeycode when posting XKeyEvent

BUG=104396
TEST=more tests passes in interactive_ui_tests passes on aura

Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113092

Review URL: http://codereview.chromium.org/8808001

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113262 0039d316-1c4b-4281-b951-d872f2087c98
parent c2b93f7e
......@@ -117,7 +117,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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment