    return ([event type] == NSKeyDown &&
               !([event modifierFlags] & NSCommandKeyMask)) ? YES : NO;
  }
-@@ -2946,9 +2962,11 @@ - (id)accessibilityFocusedUIElement {
+@@ -2964,9 +2980,11 @@ - (id)accessibilityFocusedUIElement {
  // Since this implementation doesn't have to wait any IPC calls, this doesn't
  // make any key-typing jank. --hbono 7/23/09
  //

         nil]);
   }
   return validAttributesForMarkedText_.get();
@@ -3450,6 +3470,10 @@ - (BOOL)readSelectionFromPasteboard:(NSPasteboard*)pboard {
 }
 
 - (BOOL)isOpaque {

   // If we return |NO| from this function, cocoa will send the key event to
   // the menu and only if the menu does not process the event to |keyDown:|. We
   // want to send the event to a renderer _before_ sending it to the menu, so
@@ -2014,6 +2026,7 @@ - (BOOL)performKeyEquivalent:(NSEvent*)theEvent {
     DCHECK(![[NSApp mainMenu] performKeyEquivalent:theEvent]);
     return NO;
   }
