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

Unified Diff: chrome/browser/automation/ui_controls_aurax11.cc

Issue 8808001: Aura: Convert keysym to kyeycode when posting XKeyEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years 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/aura/desktop_host_linux.cc » ('j') | ui/aura/desktop_host_linux.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/ui_controls_aurax11.cc
diff --git a/chrome/browser/automation/ui_controls_aurax11.cc b/chrome/browser/automation/ui_controls_aurax11.cc
index 1ab2747e85b7e13e33c3d6f6595a9d35e120c71f..d7dbe697961a6101e6581ae520d0ed0b11fb2ba4 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.
« no previous file with comments | « no previous file | ui/aura/desktop_host_linux.cc » ('j') | ui/aura/desktop_host_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698