본문으로 건너뛰기

getShortcutHandler

Description

키보드 내비게이션 단축키 핸들러를 가져옵니다

getShortcutHandler: (shortcut: string, scope: string) => GanttCallback

Parameters

  • shortcut - (required) string - 단축키에 사용되는 키 이름 또는 키 조합의 이름 (shortcut syntax)
  • scope - (required) string - 핸들러 함수를 연결할 컨텍스트 요소의 이름 (list of scopes)

Returns

  • shortcut_handler - (function) - 단축키 호출의 핸들러(함수)

Example

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

gantt.getShortcutHandler("shift+w", "taskRow")

Details

노트

이 메서드는 keyboard_navigation 확장에 정의되어 있으므로 keyboard_navigation 플러그인을 활성화해야 합니다. 자세한 내용은 Keyboard Navigation 문서를 참조하십시오.

버전 4.2에서 추가됨

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.