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

Unified Diff: ui/aura/window_tree_host.cc

Issue 2916673002: Don't rewrite events twice. (Closed)
Patch Set: Don't depend on MockInputMethod. Created 3 years, 7 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 | ui/aura/window_tree_host_unittest.cc » ('j') | ui/aura/window_tree_host_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_tree_host.cc
diff --git a/ui/aura/window_tree_host.cc b/ui/aura/window_tree_host.cc
index b2782422af2a6af94507e75903e1affbbe66f075..5bf1eb1d8ca4414f261ea1a7d99b0e0b2028a4ce 100644
--- a/ui/aura/window_tree_host.cc
+++ b/ui/aura/window_tree_host.cc
@@ -199,7 +199,9 @@ ui::EventDispatchDetails WindowTreeHost::DispatchKeyEventPostIME(
// If dispatch to IME is already disabled we shouldn't reach here.
DCHECK(!dispatcher_->should_skip_ime());
dispatcher_->set_skip_ime(true);
- ui::EventDispatchDetails dispatch_details = SendEventToSink(event);
+ // We should bypass event rewriters here as they've been tried before.
+ ui::EventDispatchDetails dispatch_details =
+ event_sink()->OnEventFromSource(event);
if (!dispatch_details.dispatcher_destroyed)
dispatcher_->set_skip_ime(false);
return dispatch_details;
« no previous file with comments | « no previous file | ui/aura/window_tree_host_unittest.cc » ('j') | ui/aura/window_tree_host_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698