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

Unified Diff: ui/ozone/platform/wayland/wayland_window.cc

Issue 2639053002: [ozone/wayland] Implement basic keyboard handling support (Closed)
Patch Set: addressed kpschoedel's review Created 3 years, 11 months 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
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 7dd2a3d49d37c212f9643164ccf81b6346ecb6f2..3711dbd5824dc52c9d6f22caec1ed5414920cb3e 100644
--- a/ui/ozone/platform/wayland/wayland_window.cc
+++ b/ui/ozone/platform/wayland/wayland_window.cc
@@ -149,6 +149,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;
}
« no previous file with comments | « ui/ozone/platform/wayland/wayland_window.h ('k') | ui/ozone/platform/wayland/wayland_xkb_keyboard_layout_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698