feat: [planning-design] Ctrl+X 잘라내기 기능 추가 (단일/다중)

This commit is contained in:
김보곤
2026-03-08 00:31:06 +09:00
parent ff373c719c
commit 95cd217cdc

View File

@@ -2811,6 +2811,11 @@ function planningCanvas() {
this.sbCopyBlock();
return;
}
if ((e.ctrlKey || e.metaKey) && (e.key === 'x' || e.key === 'X')) {
e.preventDefault();
this.sbCutBlock();
return;
}
if ((e.ctrlKey || e.metaKey) && (e.key === 'v' || e.key === 'V')) {
e.preventDefault();
this.sbPasteBlock();
@@ -3194,6 +3199,11 @@ function planningCanvas() {
this._sbClipboard = JSON.parse(JSON.stringify(blk));
},
sbCutBlock() {
this.sbCopyBlock();
this.sbDeleteSelectedBlock();
},
sbPasteBlock() {
if (!this._sbClipboard) return;
const page = this.sbCurrentPage;