Roadmap 0.11, Fixes
FX.445 TakeoffCraft Path tool: Esc and the touch bar Cancel cleared the selection instead of the staged path
WRONG: in TakeoffCraft's Path tool (pick the PDF's lines), Esc and the touch bar's Cancel did not clear the staged segments, as the help topic "Pick the PDF's lines" says (Esc: clear what is picked). takeoffcraft.js declared `function pickClear` twice in init(); the later one (the cross-app picker's "clear the pick") always won, so both dropped the current selection / highlight and left the staged path on screen (found in perf-finish-11 round 2, docs/0.11-sessions/perf-finish-11-r2-markup-takeoff.md, where the first one was renamed pickClearStaged and left unused).
CHANGED 2026-11-22 (owner: it must be fixed) in /lab: pick-ui.js's Path keys call pickClearStaged on Esc while something is staged (the selection is left alone; status "Picked paths cleared."); with nothing staged Esc goes on to the app's own Esc chain as before (Select tool, then select none). The touch bar's Cancel in the Path tool clears the staged segments, falling back to the picker's clear only when nothing is staged (the bar is only shown while something is staged). Files: public_html/assets/apps/takeoffcraft/a Discord member/{pick-ui.js, tools-ui.js, takeoffcraft.js}.
TESTS: new /lab page test tools/takeoffcraft-test/browser-path-esc.mjs 21/0 (keyboard: Esc clears one and a Shift-built two-path stage, selection kept, tool kept; Esc with nothing staged → Select tool, then select none; touch context: tap stages, the bar shows, Cancel clears, selection kept, bar hides; no console errors). Guards: browser-main-10.mjs 27/0, browser-pickpath.mjs 25/0, bin/test-takeoffcraft.mjs 1261/0.
UNTESTED: a real tablet or phone (the touch run is Playwright's emulated touchscreen in headless Chromium); the Cancel fallback with nothing staged (the bar is hidden then); Studio and the released /use build (lab only, not released).
Community comments
No comments yet
Add detail as we go: how you would use it, files or steps that show the problem, what other programs do. The team reads every comment.
Sign in or create a free account to add a comment.