Index: ui/ozone/platform/wayland/wayland_window.cc |
diff --git a/ui/ozone/platform/wayland/wayland_window.cc b/ui/ozone/platform/wayland/wayland_window.cc |
index 46c639adc04d2de01395039909dd1bc055532a82..0311d1cc5c08f4de3b6424bf92b608a63f407a8e 100644 |
--- a/ui/ozone/platform/wayland/wayland_window.cc |
+++ b/ui/ozone/platform/wayland/wayland_window.cc |
@@ -148,6 +148,8 @@ bool WaylandWindow::CanDispatchEvent(const PlatformEvent& native_event) { |
Event* event = static_cast<Event*>(native_event); |
if (event->IsMouseEvent()) |
return has_pointer_focus_; |
+ if (event->IsKeyEvent()) |
+ return has_keyboard_focus_; |
return false; |
} |