Перейти к основному содержимому

removeShortcut

Description

Удаляет горячее сочетание клавиш

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

Parameters

  • shortcut - (required) string - имя клавиши или имя сочетания клавиш для горячей клавиши (shortcut syntax)
  • scope - (required) string - элемент, к которому привязано сочетание клавиш (список областей)

Example

// adding a shortcut
gantt.addShortcut("shift+w", function(e){
var task = gantt.locate(e);
if(task)
gantt.showQuickInfo(task)
}, "taskRow");

// removing a shortcut
gantt.removeShortcut("shift+w", "taskRow");

Details

заметка

Этот метод определяется в расширении keyboard_navigation, поэтому необходимо активировать плагин keyboard_navigation. Подробности см. в статье Навигация по клавиатуре.

added in version 4.1

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.