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.
views:
151answers:
1
+2
A:
Take a look at addGlobalMonitorForEventsMatchingMask:handler:
class methods of NSEvent
. Also you may find Shortcut Recorder handy.
Eimantas
2010-05-24 05:24:59