파일 삭제 기능 추가, undo / redo 기능에 적용

This commit is contained in:
2026-05-15 23:32:29 +09:00
parent 1e88859484
commit 999cc9f3fb
12 changed files with 289 additions and 34 deletions
+1
View File
@@ -27,6 +27,7 @@ export function init({ gridContainer, rubberBand, grid, state, callbacks }) {
// 카드에 부착할 클릭 핸들러 (this = card element)
export function onCardClick(e) {
if (e.target.closest('.card-delete')) return;
e.stopPropagation();
const idx = parseInt(this.dataset.idx);
const isCtrl = e.ctrlKey || e.metaKey;