addShortcut

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

void addShortcut(string shortcut,function handler, [string scope] );
shortcutstring단축키를 정의하는 키 또는 키 조합 (shortcut syntax)
handlerfunction단축키가 실행될 때 호출되는 함수
scopestring(선택 사항) 핸들러가 연결될 컨텍스트 요소를 지정합니다 (list of scopes)

Example

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

Related samples

Details

버전 4.4에 추가됨

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

See also
맨 위로