PureJS 추가된 단축키의 Undo 적용여부
페이지 정보
작성자 망개홀릭스 작성일 2021-09-27 09:36 조회 1,591회 댓글 0건본문
관련링크
commandManager() 를 이용해서 아래와 같이 단축키를 설정했습니다.
//strikethrough (ctrl+5)
var cm = spread.commandManager();
var strikethroughCmd = {
canUndo: true,
execute: function() {
var sheet = spread.getActiveSheet();
sheet.getCell(sheet.getActiveRowIndex(), sheet.getActiveColumnIndex()).textDecoration(GC.Spread.Sheets.TextDecorationType.lineThrough);
return true;
}
};
cm.register("strikethrough", strikethroughCmd, 53, true, false, false, false );
댓글목록
등록된 댓글이 없습니다.