Method

O.GlobalKeyboardShortcuts#register( key, object, method )

Add a global keyboard shortcut. If a shortcut has already been
registered for this key, it will be replaced, but will be restored when
the new handler is removed.

Parameters

key

String The key to trigger the callback on. Modifier keys
(alt, ctrl, meta, shift) should be prefixed in alphabetical
order and with a hypen after each one. Letters should be
lower case. e.g. `ctrl-f`.
The special modifier "cmd-" may be used, which will map
to "meta-" on a Mac (the command key) and "Ctrl-"
elsewhere.