getShortcutHandler

gets a key navigation shortcut handler

function getShortcutHandler(string shortcut, [string scope] );
shortcutstringthe key name or the name of keys combination for a shortcut (shortcut syntax)
scopestring(optional) the name of the context element to attach the handler function to (list of scopes)
functionthe handler of the shortcut call

Example

var shortcut_handler = scheduler.getShortcutHandler("ctrl+a", "event");

Related samples

Details

Added in version 5.0

If the scope parameter is not provided the "scheduler" scope will be used by default.

See also
Back to top