removeShortcut

移除键盘快捷键

void removeShortcut(string shortcut,string scope);
shortcutstring快捷键的键名或组合键名称(快捷键语法
scopestring快捷键绑定的元素范围(范围列表

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 新增

See also
Back to top