getShortcutHandler

키 내비게이션 단축키에 대한 핸들러 함수를 가져옵니다.

function getShortcutHandler(string shortcut,string scope);
shortcutstring단축키를 정의하는 키 또는 키 조합 (shortcut syntax)
scopestring핸들러가 연결된 컨텍스트 요소 이름 (list of scopes)
function단축키를 처리하도록 할당된 함수

Example

gantt.addShortcut("shift+w", function(e){ 
    const task = gantt.locate(e); 
    if(task) 
        gantt.showQuickInfo(task)
},"taskRow");
 
gantt.getShortcutHandler("shift+w", "taskRow")

Related samples

Details

이 메서드는 keyboard_navigation 확장의 일부이므로, keyboard_navigation 플러그인을 활성화해야 합니다. 자세한 내용은 키보드 내비게이션 문서를 참조하세요.

버전 4.2에 추가됨

See also
Back to top