removeShortcut
Description
Удаляет сочетание клавиш
removeShortcut: (shortcut: string, scope?: any) => void
Parameters
shortcut- (обязательное) string - имя клавиши или имя комбинации клавиш, образующих сочетание клавиш (shortcut syntax)scope- (необязательно) object - элемент, к которому привязано сочетание клавиш (список контекстов)
Example
// добавление сочетания клавиш
scheduler.addShortcut("shift+w", function(e){
const eventId = scheduler.locate(e);
if(eventId)
scheduler.showQuickInfo(eventId);
},"event");
// удаление сочетания клавиш
scheduler.removeShortcut("shift+w","event");
Related samples
Details
Добавлено в версии 4.4
Если параметр scope не указан, будет использоваться область scheduler по умолчанию.
Related API
Related Guides
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.