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

Unified Diff: ui/aura/mus/input_method_mus.cc

Issue 2728373003: Fixs bug resulting in double event delivery in mus (Closed)
Patch Set: global disable Created 3 years, 9 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 | « ui/aura/BUILD.gn ('k') | ui/aura/mus/input_method_mus_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/input_method_mus.cc
diff --git a/ui/aura/mus/input_method_mus.cc b/ui/aura/mus/input_method_mus.cc
index df3ef42280be4dcb783680a923187af7cd5f4e3b..3252790d64798c575d0eda23a2ce2811663988b5 100644
--- a/ui/aura/mus/input_method_mus.cc
+++ b/ui/aura/mus/input_method_mus.cc
@@ -87,6 +87,9 @@ bool InputMethodMus::OnUntranslatedIMEMessage(const base::NativeEvent& event,
void InputMethodMus::DispatchKeyEvent(ui::KeyEvent* event) {
DispatchKeyEvent(event, nullptr);
+ // Mark the event as handled so that EventGenerator doesn't attempt to
+ // deliver event as well.
+ event->SetHandled();
}
void InputMethodMus::OnTextInputTypeChanged(const ui::TextInputClient* client) {
« no previous file with comments | « ui/aura/BUILD.gn ('k') | ui/aura/mus/input_method_mus_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698