diff --git a/resources/views/rd/planning-design/index.blade.php b/resources/views/rd/planning-design/index.blade.php index 4ae9801a..1bf71073 100644 --- a/resources/views/rd/planning-design/index.blade.php +++ b/resources/views/rd/planning-design/index.blade.php @@ -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;