I know this can be done for Windows and that XGrabKey can be used for X11, but what about Mac OS X? I want create a class that allows setting shortcut keys that can be invoked even when the application windows are inactive.
I know this can be done for Windows and that XGrabKey can be used
Share
Take a look at
addGlobalMonitorForEventsMatchingMask:handler:class methods ofNSEvent. Also you may find Shortcut Recorder handy.