Index: ui/aura/window_tree_host_x11.cc |
diff --git a/ui/aura/window_tree_host_x11.cc b/ui/aura/window_tree_host_x11.cc |
index 083b6ad3e689bc95219c920e51258690c917f3b4..4bbe32535eebce7edd8a691ad1be57543cb137a2 100644 |
--- a/ui/aura/window_tree_host_x11.cc |
+++ b/ui/aura/window_tree_host_x11.cc |
@@ -73,8 +73,6 @@ void SelectXInput2EventsForRootWindow(XDisplay* display, ::Window root_window) { |
memset(mask, 0, sizeof(mask)); |
XISetMask(mask, XI_HierarchyChanged); |
- XISetMask(mask, XI_KeyPress); |
- XISetMask(mask, XI_KeyRelease); |
XIEventMask evmask; |
evmask.deviceid = XIAllDevices; |
@@ -417,7 +415,6 @@ uint32_t WindowTreeHostX11::DispatchEvent(const ui::PlatformEvent& event) { |
compositor()->ScheduleRedrawRect(damage_rect); |
break; |
} |
- |
case FocusOut: |
if (xev->xfocus.mode != NotifyGrab) |
OnHostLostWindowCapture(); |
@@ -692,6 +689,12 @@ void WindowTreeHostX11::DispatchXI2Event(const base::NativeEvent& event) { |
SendEventToProcessor(&scrollev); |
break; |
} |
+ case ui::ET_KEY_PRESSED: |
+ case ui::ET_KEY_RELEASED: { |
+ ui::KeyEvent key_event(xev, false); |
+ SendEventToProcessor(&key_event); |
+ break; |
+ } |
case ui::ET_UMA_DATA: |
break; |
case ui::ET_UNKNOWN: |