Cocoa Key Equivalent in Menu is not working
问题 I have created a NSStatusItem and I have assigned two key equivalents within interface builder (Xcode 4.0). These are for the preference menu cmd-, and the quit option cmd-q. Both of these will work when the Menu is highlighted/open but will not work otherwise even if the application is the foremost. Any ideas on why this is happening or how I can change this? 回答1: The operating system passes key events that it doesn't handle to the front application, which compares them to any key