跳转到主要内容

removeShortcut

Description

移除键盘快捷键

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

Parameters

  • shortcut - (required) string - 快捷键的按键名称或组合键名称(快捷键语法
  • scope - (optional) object - (可选)快捷键绑定的元素范围(范围列表

Example

// 添加快捷键
scheduler.addShortcut("shift+w", function(e){
var 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.