Zum Hauptinhalt springen

getShortcutHandler

Description

Ruft einen Handler für eine Tastaturnavigations-Shortcut ab

getShortcutHandler: (shortcut: string, scope?: string) => SchedulerCallback

Parameters

  • shortcut - (required) string - die Taste oder Tastenkombination, die den Shortcut definiert (Shortcut-Syntax)
  • scope - (optional) string - (optional) der Name des Kontext-Elements, an das der Handler gebunden wird (Liste der Scopes)

Returns

  • shortcut_handler - (function) - die Funktion, die die Shortcut-Aktion verarbeitet

Example

var shortcut_handler = scheduler.getShortcutHandler("ctrl+a", "event");

Details

Eingeführt in Version 5.0

Wenn der Parameter scope ausgelassen wird, wird der Handler an den Standard-"scheduler"-Scope gebunden.

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.