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

Unified Diff: ui/base/ime/input_method_base.cc

Issue 2872343003: Remove InputMethodEventHandler. (Closed)
Patch Set: Add a unittest. 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
Index: ui/base/ime/input_method_base.cc
diff --git a/ui/base/ime/input_method_base.cc b/ui/base/ime/input_method_base.cc
index f436c5d5199ada5cdcf1ed8e6501cbea8b0ebfc7..db7ecd0b40b34cdb5c6b866056e11f9d9ff4570d 100644
--- a/ui/base/ime/input_method_base.cc
+++ b/ui/base/ime/input_method_base.cc
@@ -132,8 +132,10 @@ void InputMethodBase::OnInputMethodChanged() const {
ui::EventDispatchDetails InputMethodBase::DispatchKeyEventPostIME(
ui::KeyEvent* event) const {
ui::EventDispatchDetails details;
- if (delegate_)
+ if (delegate_) {
+ event->set_skip_ime(true);
sadrul 2017/05/15 14:44:24 Instead of turning the flag on here, can WindowTre
Hadi 2017/05/15 17:22:13 Done.
details = delegate_->DispatchKeyEventPostIME(event);
+ }
return details;
}

Powered by Google App Engine
This is Rietveld 408576698