새로운 키보드 단축키를 생성합니다
shortcut | string | 단축키를 정의하는 키 또는 키 조합 (shortcut syntax) |
handler | function | 단축키가 실행될 때 호출되는 함수 |
scope | string | (선택 사항) 핸들러가 연결될 컨텍스트 요소를 지정합니다 (list of scopes) |
scheduler.addShortcut("shift+w", function(e){
var eventId = scheduler.locate(e);
if(eventId)
scheduler.showQuickInfo(eventId);
},"event");
버전 4.4에 추가됨
세 번째 매개변수를 생략하면 핸들러는 기본적으로 scheduler scope에 연결됩니다.