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

Unified Diff: ash/ime/input_method_event_handler.cc

Issue 1209913002: InputMethod should stop TextInputClient::InsertChar/InsertText calls when the event is stopped prop… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed test failures. Created 5 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 | « ash/host/ash_window_tree_host_x11.cc ('k') | ui/aura/window_tree_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/ime/input_method_event_handler.cc
diff --git a/ash/ime/input_method_event_handler.cc b/ash/ime/input_method_event_handler.cc
index 6cac9bba9798341eab45abd9b333062342a51634..8d3c0a8a6b8f22d4b4b1a15b8ba643c6b14295a5 100644
--- a/ash/ime/input_method_event_handler.cc
+++ b/ash/ime/input_method_event_handler.cc
@@ -30,7 +30,10 @@ void InputMethodEventHandler::OnKeyEvent(ui::KeyEvent* event) {
// Never send synthesized key event.
if (event->flags() & ui::EF_IS_SYNTHESIZED)
return;
- if (!post_ime_ && input_method_->DispatchKeyEvent(*event))
- event->StopPropagation();
-}
+ if (post_ime_)
+ return;
+ input_method_->DispatchKeyEvent(*event);
oshima 2015/06/30 15:15:50 Why we're ignoring the result now? Looks like the
Shu Chen 2015/07/01 02:02:42 I will change the API spec in a separated CL. The
+ event->StopPropagation();
}
+
+} // namespace ash
« no previous file with comments | « ash/host/ash_window_tree_host_x11.cc ('k') | ui/aura/window_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698