Associates a event handler with a name and description.
Syntax
myKeyboard.addShortcut('save', {'keys': 'ctrl+s',
'description': 'Save the current document',
'handler': doSaveFunc
});
Arguments
name - (string) The name of the shortcut.
shortcut - (object)
keys - (string (optional)) Same as the argument that you would pass to addEvent. If not passed it will not automatically add it as an event on the Keyboard.
description - (string) A brief description of the functionality.
Goes through all active keyboards using the passed in keyboard or Keyboard.manager as a starting point and attempts to find a shortcut with the name passed in.
Syntax
Keyboard.getShortcut('save');
Arguments
name - (string) The name of the shortcut to lookup.
keyboard - (object (optional)) The keyboard to start looking on.
Returns
(object or null) The shortcut with the name if found.