跳转到主要内容

getShortcutHandler

Description

获取一个键盘导航快捷键的处理函数

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

Parameters

  • shortcut - (required) string - 定义快捷键的按键或按键组合 (快捷键语法)
  • scope - (optional) string - (可选)处理函数将附加的上下文元素名称 (作用域列表)

Returns

  • shortcut_handler - (function) - 处理该快捷键动作的函数

Example

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

Details

自版本 5.0 引入

当省略 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.