I try to open a window when the user presses Cmd + L, but how can I get the controller object to listen to this particular key combination?
Create a menu item, set its shortcut to Cmd-L and connect it to the action on this controller (or on another controller that will go to your desired controller).
Or ... read the Key Event Handling section of the Cocoa Event Management Guide and implement a custom view that, when it is the first responder, interprets this key event and notifies your controller.
... .
... - , .
Source: https://habr.com/ru/post/1722113/More articles:IIS 7 Http Handler Development Issue - c #How can I override a component registered in Castle Windsor? - c #How to disable selected columns in datagrid in flex for selected rows? - flexHow to associate an action with a keyboard shortcut? - objective-cDelphi - register all HTTP request - httpTesting a SOAP endpoint through junit throws a SAXParseException (soapenv: Envelope) - springAssociation applications? - logicWhat does SIGPIPE mean in this situation? - perlДля чего нужен метод getQuery? - documentumPerforming Sql \ Function Subqueries - cachingAll Articles