Reputation: 800
I have an application with an NSMenuItem that launches a separate window and I was wondering if it would also be possible to add a hot-key combination so that it would be possible to also invoke the NSWindow via that as well.
I was thinking that it's not possible, because wouldn't the application have to be 'Active' for a hot-key to work?
So, where should I be looking? Because, honestly, I'm not sure where to start.
Thanks!
Upvotes: 1
Views: 451
Reputation: 50707
Your hot-key will only work when the app is active.
Click where the square is and press the combo of keys that you want to assign:
In case you mess up the combo of keys, you can clear it here (the "Clear" button at the bottom):
Upvotes: 2