fix(B05): 임시 배치 좌표 = 측점번호+잔여거리 확정값 — Enter도 focusout 경로로 통일
측점번호 칸에서 Enter 시 잔여거리 0으로 즉시 배치되던 빈틈 제거. Enter는 포커스만 빼고, 임시 배치는 입력군 이탈(focusout) 한 경로에서 두 칸 합산값으로만 나간다. 배치 좌표는 스냅 없이 입력값 그대로다(노선 범위 클램프만). Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -661,7 +661,11 @@ export function createStructuresSection(callbacks: StructuresCallbacks): Structu
|
||||
});
|
||||
});
|
||||
positionRow.addEventListener("keydown", (event) => {
|
||||
if (event.key === "Enter") commitTempPipe();
|
||||
// Enter = 입력 확정 — 포커스를 빼서 focusout 경로 하나로 처리한다(측점번호+
|
||||
// 잔여거리 합산값이 그대로 임시 배치 좌표가 된다).
|
||||
if (event.key === "Enter" && document.activeElement instanceof HTMLElement) {
|
||||
document.activeElement.blur();
|
||||
}
|
||||
});
|
||||
|
||||
body.insertBefore(field("메모", memoField), actions);
|
||||
|
||||
Reference in New Issue
Block a user