getShortcutHandler
Description
Ruft eine Handler-Funktion für eine Tastaturnavigations-Shortcut ab
getShortcutHandler: (shortcut: string, scope: string) => GanttCallback
Parameters
shortcut- (required) string - die Taste oder Tastenkombination, die den Shortcut definiert (Shortcut-Syntax)scope- (required) string - der Kontext-Elementname, an dem der Handler angebracht ist (Liste der Scopes)
Returns
shortcut_handler- (function) - die Funktion, die zur Behandlung des Shortcuts zugewiesen ist
Example
gantt.addShortcut("shift+w", function(e){
const task = gantt.locate(e);
if(task)
gantt.showQuickInfo(task)
},"taskRow");
gantt.getShortcutHandler("shift+w", "taskRow")
Related samples
Details
Hinweis
Diese Methode ist Teil der keyboard_navigation Extension, daher stellen Sie sicher, dass das keyboard_navigation Plugin aktiviert ist. Weitere Details finden Sie im Artikel "Tastaturnavigation".
hinzugefügt in Version 4.2