removeShortcut

removes a keyboard shortcut

void removeShortcut(string shortcut,string scope);
shortcutstringthe key name or the name of keys combination for a shortcut (shortcut syntax)
scopestringthe element to which the shortcut is attached (list of scopes)

Example

// adding a shortcut
gantt.addShortcut("shift+w", function(e){ 
    var task = gantt.locate(e); 
    if(task) 
        gantt.showQuickInfo(task)
}, "taskRow");
 
// removing a shortcut
gantt.removeShortcut("shift+w", "taskRow");

Related samples

Details

This method is defined in the keyboard_navigation extension, so you need to activate the keyboard_navigation plugin. Read the details in the Keyboard Navigation article.

added in version 4.1

See also
Back to top