Done: in a preview, Escape closes the open panel, focus goes back to the toolbar button, Tab never leaves a closed panel's controls reachable; a browser-lane test or a DOM test of the script proves each. Suggested: torque.
Risks: Growing the script: stay inside the size budget the toolbar's own test names.
Read AGENTS.md and docs/PRINCIPLES.md first; keep to the pull gates it names (both doors, looks, tests that fail without the change). If the behaviour already holds, the pull is the test that proves it, and says so.
Done: in a preview, Escape closes the open panel, focus goes back to the toolbar button, Tab never leaves a closed panel's controls reachable; a browser-lane test or a DOM test of the script proves each. Suggested: torque.
Risks: Growing the script: stay inside the size budget the toolbar's own test names.
Read AGENTS.md and docs/PRINCIPLES.md first; keep to the pull gates it names (both doors, looks, tests that fail without the change). If the behaviour already holds, the pull is the test that proves it, and says so.
Files: src/web/forge_pill.ts, test/toolbar-keyboard.test.ts