Skip to content

Instantly share code, notes, and snippets.

@steveatinfincia
Created October 2, 2014 03:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steveatinfincia/c966ed6d74c4e8cec4f8 to your computer and use it in GitHub Desktop.
Save steveatinfincia/c966ed6d74c4e8cec4f8 to your computer and use it in GitHub Desktop.
Global Hotkeys in OS X
extern OSStatus
RegisterEventHotKey(
UInt32 inHotKeyCode,
UInt32 inHotKeyModifiers,
EventHotKeyID inHotKeyID,
EventTargetRef inTarget,
OptionBits inOptions,
EventHotKeyRef * outRef)
AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment