Chromium Code Reviews| Index: chrome/browser/ui/cocoa/nsmenuitem_additions.mm |
| diff --git a/chrome/browser/ui/cocoa/nsmenuitem_additions.mm b/chrome/browser/ui/cocoa/nsmenuitem_additions.mm |
| index 90bb35347239b7febabbe26b728d5d2042583303..1d0420b306c84d0455eddbe63b77edaf09dbf166 100644 |
| --- a/chrome/browser/ui/cocoa/nsmenuitem_additions.mm |
| +++ b/chrome/browser/ui/cocoa/nsmenuitem_additions.mm |
| @@ -12,9 +12,6 @@ |
| - (BOOL)cr_firesForKeyEvent:(NSEvent*)event { |
|
Nico
2010/12/04 20:25:15
You can then implement this function as
… {
if
James Su
2010/12/06 18:37:28
Done.
|
| DCHECK([event type] == NSKeyDown); |
| - if (![self isEnabled]) |
| - return NO; |
| - |
| // In System Preferences->Keyboard->Keyboard Shortcuts, it is possible to add |
| // arbitrary keyboard shortcuts to applications. It is not documented how this |
| // works in detail, but |NSMenuItem| has a method |userKeyEquivalent| that |