본문으로 건너뛰기

addShortcut

Description

새 키보드 단축키를 추가합니다

addShortcut: (shortcut: string, handler: GanttCallback, scope?: string) => void

Parameters

  • shortcut - (필수) string - 단축키의 키 이름 또는 키 조합의 이름 shortcut 구문
  • handler - (필수) function - 단축키 호출의 핸들러

Example

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

Details

노트

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

버전 4.1에서 추가됨

세 번째 매개변수가 설정되지 않은 경우 핸들러가 gantt 스코프에 연결됩니다.

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.