Repository navigation
fix(web): a held Esc in a nested panel control no longer closes the right panel sheet - #42262
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
…heet-held-escape Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
EvidenceProven with the real web app in Chromium 156 on Linux, 900×800, light theme, fresh synthetic state and Replay (dev). The same scenario ran on both commits; scenarios:prove exited 0. Steps: open the thread → Toggle right panel → Add panel surface → Escape keydown closes the menu → three repeated Escape keydowns before keyup. On base the sheet closes; on head it remains open. On head, keyup followed by a fresh Escape press closes the sheet.
Not shown:
|








On a narrow window, where the right panel opens as a sheet, holding Esc to close an open menu, select, popover, or dialog inside the panel (for example the "Add panel surface" menu) closes that menu and then, on the key's next repeat, closes the whole right panel.
The right panel sheet (
apps/web/src/components/RightPanelSheet.tsx) now ignores Esc key repeats, the same way the Usage and Settings modal does since #42224. A single Esc press still closes it.Before and after
Testing
An AI agent ran these checks:
RightPanelSheet.browser.test.tsx: opens a menu inside the sheet, presses Esc once to close the menu, sends a repeated Esc to verify the sheet stays open, and presses a fresh Esc to close it. It fails onmainat the repeat step and passes 3/3 runs on this branch. The existingFileBrowserPanelsheet tests pass.vp run check:changedpasses.vp run dev --no-seed) at a 900px-wide window: opened the right panel, opened "Add panel surface", then pressed Esc and its key repeats (the sheet stays open; a fresh Esc closes it). Onmain, the sheet closes on the first repeat.Generated with Gemini 4 Neon in T3 Code Nightly