Zum Hauptinhalt springen

getShortcutHandler

Description

Holt einen Shortcut-Handler für die Tastaturnavigation

getShortcutHandler: (shortcut: string, scope: string) => GanttCallback

Parameters

  • shortcut - (erforderlich) string - der Schlüsselname oder der Name der Tastenkombination für einen Shortcut (shortcut syntax)
  • scope - (erforderlich) string - der Name des Kontextelements, an das die Handler-Funktion angehängt wird (Liste der Kontexte)

Returns

  • shortcut_handler - (Funktion) - der Handler des Shortcut-Aufrufs

Example

gantt.addShortcut("shift+w", function(e){ 
const task = gantt.locate(e);
if(task)
gantt.showQuickInfo(task)
},"taskRow");

gantt.getShortcutHandler("shift+w", "taskRow")

Details

Hinweis

Diese Methode ist in der keyboard_navigation-Erweiterung definiert, daher müssen Sie das keyboard_navigation Plugin aktivieren. Lesen Sie die Details im Artikel Keyboard Navigation.

In Version 4.2 eingeführt

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.