pb-osx-globalhotkeys
Posted: Sat Jan 09, 2016 9:36 am
I wrote a module for managing global (system-wide) hotkeys on OS X.
It's based on this code and intended to be used with ShortcutGadget() (also, check this thread).
Because of that you can forget about all those keyboard codes and constants, just use the power of unicode and create hotkeys by passing simple strings like "⇧⌘S":

github
direct download
Feel free to contribute.
It's based on this code and intended to be used with ShortcutGadget() (also, check this thread).
Because of that you can forget about all those keyboard codes and constants, just use the power of unicode and create hotkeys by passing simple strings like "⇧⌘S":
Code: Select all
globalHK::add("⇧⌘S",event.i)

github
direct download
Feel free to contribute.