removeShortcut

移除键盘快捷键

void removeShortcut(string shortcut, [object scope] );
shortcutstring快捷键的按键名称或组合键名称(快捷键语法
scopeobject(可选)快捷键绑定的元素范围(范围列表

Example

// 添加快捷键
scheduler.addShortcut("shift+w", function(e){ 
    var eventId = scheduler.locate(e); 
    if(eventId) 
        scheduler.showQuickInfo(eventId);
},"event");
 
// 移除快捷键
scheduler.removeShortcut("shift+w","event");

Related samples

Details

自版本 4.4 起新增

当省略 scope 参数时,快捷键将从默认的 "scheduler" 范围中移除。

See also
返回顶部