복사된 셀 표시

This commit is contained in:
kjs 2026-01-08 12:23:00 +09:00
parent 6a1343b847
commit f33d989202
1 changed files with 3 additions and 3 deletions

View File

@ -104,9 +104,6 @@ export const EditableSpreadsheet: React.FC<EditableSpreadsheetProps> = ({
});
setIsDraggingSelection(true);
// 복사 범위 초기화 (새로운 선택 시작하면 이전 복사 표시 제거)
setCopiedRange(null);
// 테이블에 포커스 (키보드 이벤트 수신용)
tableRef.current?.focus();
}, [editingCell]);
@ -532,6 +529,9 @@ export const EditableSpreadsheet: React.FC<EditableSpreadsheetProps> = ({
if (isInputFocused) return;
e.preventDefault();
handleDelete();
} else if (e.key === "Escape") {
// Esc로 복사 범위 표시 취소
setCopiedRange(null);
}
};