fix(live): Escape in PICKING also resets the global bar's Pick button

Previously Escape while picking just hid the highlight and set state
to IDLE, leaving the global bar's Pick button visually active. Next
pick attempt fell into a broken state where the button looked on but
no picker ran. Route through togglePick() so the flag, the button,
the UI, and the state all flip together.

Small copy fix on Why panel 04: Figma stamp now reads "last touched
Q3 2025" (was 2024; should reflect closer to the current calendar).
This commit is contained in:
Paul Bakaus
2026-04-22 13:16:41 -07:00
parent af50f22d57
commit 37c1a364a4
13 changed files with 85 additions and 13 deletions
@@ -1747,7 +1747,13 @@
if (state === 'CONFIGURING') { hideBar(); stopScrollTracking(); hideAnnotOverlay(); clearAnnotations(); state = 'PICKING'; return; }
if (state === 'CYCLING') { handleDiscard(); return; }
if (state === 'SAVING' || state === 'CONFIRMED') return; // don't interrupt
if (state === 'PICKING') { hideHighlight(); state = 'IDLE'; return; }
if (state === 'PICKING') {
// Use togglePick so the "Pick" button in the global bar also flips
// off, otherwise the bar stays lit while nothing else is active.
if (pickActive) togglePick();
else { hideHighlight(); state = 'IDLE'; }
return;
}
}
// Arrow/Enter nav works in PICKING (hover) and CONFIGURING (selected, input empty)