getShortcutHandler

gets a key navigation shortcut handler

function getShortcutHandler(string shortcut,string scope);

Parameters

shortcutstringthe key name or the name of keys combination for a shortcut (shortcut syntax)
scopestringthe name of the context element to attach the handler function to (list of scopes)

Returns

functionthe handler of the shortcut call

Example

var shortcut_handler = gantt.getShortcutHandler(shortcut, scope);

Related samples

Details

This method is defined in the ext/dhtmlxgantt_keyboard_navigation.js extension, so you need to include it on the page. Read the details in the Keyboard Navigation article.

added in version 4.2

See also
Back to top