Zum Hauptinhalt springen

removeShortcut

Description

Entfernt eine Tastenkombination (keyboard shortcut)

removeShortcut: (shortcut: string, scope?: any) => void

Parameters

  • shortcut - (required) string - der Name der Taste oder der Tastenkombination für einen Shortcut (shortcut syntax)
  • scope - (optional) object - (optional) das Element, an das der Shortcut gebunden ist (Liste der Scopes)

Example

// Hinzufügen eines Shortcuts
scheduler.addShortcut("shift+w", function(e){
var eventId = scheduler.locate(e);
if(eventId)
scheduler.showQuickInfo(eventId);
},"event");

// Entfernen eines Shortcuts
scheduler.removeShortcut("shift+w","event");

Details

Hinzugefügt in Version 4.4

Wenn der Parameter scope weggelassen wird, wird der Shortcut aus dem Standard-"scheduler" Scope entfernt.

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.