feat: [esign] Shift+클릭으로 필드 다중 선택/해제 토글 기능 추가

This commit is contained in:
김보곤
2026-02-23 14:05:05 +09:00
parent 01997806d6
commit 0d98fabf8d

View File

@@ -557,7 +557,7 @@ className="text-gray-300 hover:text-red-500 flex-shrink-0 ml-1">&times;</button>
// 필드 선택 헬퍼
const selectField = useCallback((idx, e) => {
if (e && (e.ctrlKey || e.metaKey)) {
if (e && (e.ctrlKey || e.metaKey || e.shiftKey)) {
setSelectedIndices(prev => {
const next = new Set(prev);
if (next.has(idx)) {
@@ -827,7 +827,7 @@ className="text-gray-300 hover:text-red-500 flex-shrink-0 ml-1">&times;</button>
const y = ((e.clientY - rect.top) / rect.height) * 100;
setLassoStart({ x, y });
setLassoEnd({ x, y });
if (!(e.ctrlKey || e.metaKey)) {
if (!(e.ctrlKey || e.metaKey || e.shiftKey)) {
clearSelection();
}
}, [clearSelection]);