removeShortcut

entfernt eine Tastenkombination

void removeShortcut(string shortcut,string scope);
shortcutstringder Name der Taste oder der Tastenkombination für das Shortcut (Shortcut-Syntax)
scopestringdas Element, dem das Shortcut zugewiesen ist (Liste der Scopes)

Example

// Hinzufügen eines Shortcuts
gantt.addShortcut("shift+w", function(e){ 
    var task = gantt.locate(e); 
    if(task) 
        gantt.showQuickInfo(task)
}, "taskRow");
 
// Entfernen eines Shortcuts
gantt.removeShortcut("shift+w", "taskRow");

Related samples

Details

Diese Methode ist Teil der keyboard_navigation Erweiterung, daher stellen Sie sicher, dass das keyboard_navigation Plugin aktiviert ist. Weitere Details finden Sie im Artikel Tastaturnavigation.

hinzugefügt in Version 4.1

See also
Zurück nach oben