Page 1 of 1

pb-osx-globalhotkeys

Posted: Sat Jan 09, 2016 9:36 am
by deseven
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":

Code: Select all

globalHK::add("⇧⌘S",event.i)
Image

github
direct download

Feel free to contribute.

Re: pb-osx-globalhotkeys

Posted: Mon Jul 11, 2016 3:13 pm
by deseven
I've also made a very simple hotkey manager based on this module. Can be used as a more complex example.