Перейти к основному содержимому

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");

Details

Добавлено в версии 4.4

Если параметр scope не указан, будет использоваться область scheduler по умолчанию.

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.