removeShortcut
Description
移除一个快捷键
removeShortcut: (shortcut: string, scope: string) => void
Parameters
shortcut- (必填) string - 快捷键的按键名称,或快捷键组合的名称 (shortcut syntax)scope- (必填) string - 快捷键绑定到的元素 (作用域列表)
Example
// 添加快捷键
gantt.addShortcut("shift+w", function(e){
var task = gantt.locate(e);
if(task)
gantt.showQuickInfo(task)
}, "taskRow");
// 移除快捷键
gantt.removeShortcut("shift+w", "taskRow");
Related samples
Details
注释
此方法在 keyboard_navigation 扩展中定义,因此需要启用 keyboard_navigation 插件。请在 键盘导航 文章中读取详细信息。
在版本 4.1 中新增
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.