본문으로 건너뛰기

removeShortcut

Description

키보드 단축키를 제거합니다

removeShortcut: (shortcut: string, scope?: any) => void

Parameters

  • shortcut - (required) string - 단축키의 키 이름 또는 키 조합 이름 (shortcut syntax)
  • scope - (optional) object - (선택 사항) 단축키가 연결된 요소 (scope 목록)

Example

// 단축키 추가
scheduler.addShortcut("shift+w", function(e){
var eventId = scheduler.locate(e);
if(eventId)
scheduler.showQuickInfo(eventId);
},"event");

// 단축키 제거
scheduler.removeShortcut("shift+w","event");

Details

버전 4.4에서 추가됨

scope 파라미터를 생략하면, 단축키는 기본 "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.