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

Unified Diff: chromecast/graphics/cast_window_manager_aura.cc

Issue 2946973002: No special case for dispatching key events in ChromeCast. (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/graphics/cast_window_manager_aura.cc
diff --git a/chromecast/graphics/cast_window_manager_aura.cc b/chromecast/graphics/cast_window_manager_aura.cc
index d0f15598bbf9c05262e7ac5c17431e4a9b6e48c1..7fec872618810367a7765b3836369c84ed67f1b5 100644
--- a/chromecast/graphics/cast_window_manager_aura.cc
+++ b/chromecast/graphics/cast_window_manager_aura.cc
@@ -75,13 +75,7 @@ void CastWindowTreeHost::DispatchEvent(ui::Event* event) {
return;
}
- if (event->IsKeyEvent()) {
- // Convert a RawKeyDown into a character insertion; otherwise
- // the WebContents will ignore most keyboard input.
- GetInputMethod()->DispatchKeyEvent(event->AsKeyEvent());
- } else {
- WindowTreeHostPlatform::DispatchEvent(event);
- }
+ WindowTreeHostPlatform::DispatchEvent(event);
}
// A layout manager owned by the root window.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698