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

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

Issue 2973463002: MacViews: Don't InsertChar() for consumed events. (Closed)
Patch Set: Rebase (patch failure due to r484422) 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
« no previous file with comments | « no previous file | ui/views/controls/textfield/textfield_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())
+ 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698