Chromium Code Reviews| 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(), |
|
Daniel Erat
2011/12/05 19:40:38
we should also be calling XRefreshKeyboardMapping(
|
| + ui::XKeysymForWindowsKeyCode(key, shift)); |
| aura::Desktop::GetInstance()->PostNativeEvent(&xevent); |
| // Send key release events. |