feat: detach wall chain on Escape

Issue: #294
User-Visible: yes
This commit is contained in:
Sergey Matyunin
2026-08-24 18:16:46 +00:00
committed by claude[bot]
parent 578eb5ebd3
commit 953f6756bc
10 changed files with 141 additions and 29 deletions
+4 -1
View File
@@ -2627,7 +2627,10 @@ class HouseplanCard extends LitElement {
}
if (this._tool === 'draw' && this._path.length) {
e.preventDefault();
this._undoPoint();
// Escape releases the active wall chain without making it destructive:
// Ctrl/Cmd+Z remains the one-point undo path (#294). Reuse the exact
// finish transaction used by a tool change, but keep `draw` selected.
this._finishWallChain();
return;
}
if (this._physicalSel) {
+1 -1
View File
@@ -158,7 +158,7 @@
"confirm.delete_partition_openings_body": "This wall contains {count} opening(s). They will be deleted together.",
"confirm.delete_partition_openings_item": "• {type}, {length}",
"markup.delete": "Delete",
"markup.hint_points": "points: {n} · Shift — 45° steps · Esc/Ctrl+Z — undo a dot · closing an area offers a room",
"markup.hint_points": "points: {n} · Shift — 45° steps · Esc — finish chain · Ctrl+Z — undo a point · closing an area offers a room",
"markup.hint_start": "click a grid dot to start a wall chain",
"tip.lqi": "average zigbee signal:",
"tip.area": "area: {value}",
+1 -1
View File
@@ -158,7 +158,7 @@
"confirm.delete_partition_openings_body": "В стене есть проёмы: {count}. Они будут удалены вместе со стеной.",
"confirm.delete_partition_openings_item": "• {type}, {length}",
"markup.delete": "Удалить",
"markup.hint_points": "точек: {n} · Shift — шаг 45° · Esc/Ctrl+Z — убрать точку · при замыкании будет предложена комната",
"markup.hint_points": "точек: {n} · Shift — шаг 45° · Esc — завершить цепочку · Ctrl+Z — убрать точку · при замыкании будет предложена комната",
"markup.hint_start": "кликните точку сетки, чтобы начать цепочку стен",
"tip.lqi": "средний сигнал zigbee:",
"tip.area": "площадь: {value}",