removeShortcut

удаляет клавиатурный shortcut

void removeShortcut(string shortcut, [object scope] );
shortcutstringназвание клавиши или комбинации клавиш для shortcut (синтаксис shortcut)
scopeobject(необязательно) элемент, к которому привязан shortcut (список scope)

Example

// добавление shortcut
scheduler.addShortcut("shift+w", function(e){ 
    var eventId = scheduler.locate(e); 
    if(eventId) 
        scheduler.showQuickInfo(eventId);
},"event");
 
// удаление shortcut
scheduler.removeShortcut("shift+w","event");

Related samples

Details

Добавлено в версии 4.4

Если параметр scope опущен, shortcut будет удалён из дефолтного scope "scheduler".

See also
Наверх