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

Unified Diff: ui/views/cocoa/bridged_content_view.mm

Issue 2973463002: MacViews: Don't InsertChar() for consumed events. (Closed)
Patch Set: Fix non-mac Created 3 years, 5 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/views/cocoa/bridged_content_view.mm
diff --git a/ui/views/cocoa/bridged_content_view.mm b/ui/views/cocoa/bridged_content_view.mm
index 46e34d86737b6a9716db18835ad7ea1b38f59c4d..e300b7e245c66c6c540e10f4df6ee48ca84dfd88 100644
--- a/ui/views/cocoa/bridged_content_view.mm
+++ b/ui/views/cocoa/bridged_content_view.mm
@@ -530,6 +530,8 @@ ui::TextEditCommand GetTextEditCommandForMenuAction(SEL action) {
ui::EF_NONE);
[self handleKeyEvent:&charEvent];
hasUnhandledKeyDownEvent_ = NO;
+ if (charEvent.handled())
msw 2017/07/05 19:21:21 q: Should this actually be in the |isCharacterEven
tapted 2017/07/06 05:58:07 This one is a special case. The |charEvent| that g
+ return;
}
// Forward the |text| to |textInputClient_| if no menu is active.
« no previous file with comments | « no previous file | ui/views/controls/textfield/textfield_unittest.cc » ('j') | ui/views/controls/textfield/textfield_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698