본문으로 건너뛰기

addShortcut

Description

새로운 키보드 단축키를 생성합니다

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

Parameters

  • shortcut - (required) string - 단축키를 정의하는 키 또는 키 조합 (shortcut syntax)
  • handler - (required) function - 단축키가 실행될 때 호출되는 함수
  • scope - (optional) string - (선택 사항) 핸들러가 연결될 컨텍스트 요소를 지정합니다 (list of scopes)

Example

scheduler.addShortcut("shift+w", function(e){ 
var eventId = scheduler.locate(e);
if(eventId)
scheduler.showQuickInfo(eventId);
},"event");

Details

버전 4.4에 추가됨

세 번째 매개변수를 생략하면 핸들러는 기본적으로 scheduler scope에 연결됩니다.

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.