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

Unified Diff: sky/engine/core/events/UIEventWithKeyState.cpp

Issue 870073003: Remove mouse events from Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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: sky/engine/core/events/UIEventWithKeyState.cpp
diff --git a/sky/engine/core/events/UIEventWithKeyState.cpp b/sky/engine/core/events/UIEventWithKeyState.cpp
index 31bb11a87cd78964e510416db6c4a273249053c8..6d509f7a189b77e45c31c2328db4b10a2948c642 100644
--- a/sky/engine/core/events/UIEventWithKeyState.cpp
+++ b/sky/engine/core/events/UIEventWithKeyState.cpp
@@ -26,7 +26,7 @@ namespace blink {
UIEventWithKeyState* findEventWithKeyState(Event* event)
{
for (Event* e = event; e; e = e->underlyingEvent())
- if (e->isKeyboardEvent() || e->isMouseEvent())
+ if (e->isKeyboardEvent())
return static_cast<UIEventWithKeyState*>(e);
return 0;
}

Powered by Google App Engine
This is Rietveld 408576698