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

Unified Diff: chrome/browser/ui/cocoa/nsmenuitem_additions.h

Issue 5576002: Fix BrowserKeyEventsTest.ReservedAccelerators on Mac 10.6 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update comment. Created 10 years 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: chrome/browser/ui/cocoa/nsmenuitem_additions.h
diff --git a/chrome/browser/ui/cocoa/nsmenuitem_additions.h b/chrome/browser/ui/cocoa/nsmenuitem_additions.h
index 830498ae9fd86c00fb0b91ac4c4af4d5dca399f9..32170d97f7e5cc08300d6bbd217a7ab89888e719 100644
--- a/chrome/browser/ui/cocoa/nsmenuitem_additions.h
+++ b/chrome/browser/ui/cocoa/nsmenuitem_additions.h
@@ -12,6 +12,11 @@
// Returns true exactly if the menu item would fire if it would be put into
// a menu and then |menu performKeyEquivalent:event| was called.
+// This method matches the key equivalent regardless of the item's enable state,
+// because this method is only for looking up the corresponding menu item of a
+// specified key equivalent, and even if the item is disabled when calling this
+// method, it might be already enbled when the key equivalent gets handled by
+// NSApp.
- (BOOL)cr_firesForKeyEvent:(NSEvent*)event;
Nico 2010/12/04 20:25:15 Can you leave the function as is and instead add a
James Su 2010/12/06 18:37:28 Done.
@end

Powered by Google App Engine
This is Rietveld 408576698