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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_mac.mm

Issue 234003: A follow-up change for r26694.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 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 | « chrome/browser/cocoa/rwhvm_editcommand_helper.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_widget_host_view_mac.mm
===================================================================
--- chrome/browser/renderer_host/render_widget_host_view_mac.mm (revision 27033)
+++ chrome/browser/renderer_host/render_widget_host_view_mac.mm (working copy)
@@ -474,11 +474,13 @@
+ (void)matchEditCommands:(EditCommands*)edit_commands
forEvent:(NSEvent*)theEvent {
- if ([theEvent type] != NSKeyDown) return;
+ if ([theEvent type] != NSKeyDown)
+ return;
// Don't interpret plain key presses. This screws up things like <Tab>.
NSUInteger flags = [theEvent modifierFlags];
flags &= (NSControlKeyMask | NSAlternateKeyMask | NSCommandKeyMask);
- if (flags == 0) return;
+ if (!flags)
+ return;
scoped_nsobject<EditCommandMatcher> matcher(
[[EditCommandMatcher alloc] initWithEditCommands:edit_commands]);
[matcher.get() interpretKeyEvents:[NSArray arrayWithObject:theEvent]];
« no previous file with comments | « chrome/browser/cocoa/rwhvm_editcommand_helper.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698