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

getShortcutHandler

Description

Получает обработчик для сочетания клавиш навигации

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

Parameters

  • shortcut - (required) string - клавиша или комбинация клавиш, определяющая shortcut (синтаксис shortcut)
  • scope - (optional) string - (необязательно) имя контекстного элемента, к которому будет прикреплен обработчик (список scope)

Returns

  • shortcut_handler - (function) - функция, которая обрабатывает действие shortcut

Example

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

Details

Введено в версии 5.0

Если параметр scope опущен, обработчик прикрепляется к 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.