fonts: hold page keys during a wait; the status hangs under the bars
Review 8 (#83). P1: with the editor inert, focus is on the page, and WebKit's Backspace there went back in history and lost the waiting paste. During a wait, Backspace, Space, the arrows, Page Up/Down, Home and End are held when they would reach the page (the body or an inert element); the title, dialogs and comments keep them, and Tab is untouched. Leaving the page while an action waits asks first (beforeunload). P2: the status strip no longer lies over the formatting bar, where it covered the controls a person tabbed to. It hangs just under the bars, over the tray and the page's top margin, under the bars' own menus. It takes no space, so nothing moves; the tray keeps room for one line of it at every width, and the gate makes more room for the substitutes note before the page is shown. P2: the strip wraps instead of clipping, and the copy is shorter, so the substitutes note is whole and dismissible from 320 px up. The engines capture starts below the strip. Tests, failing first on c159e68: TestFontEnginesAWaitKeepsThePage (Chromium and WebKit: keys during a wait, a real input's Backspace, beforeunload), and the status test now checks controls, the focus (after Escape into the bar) and clipping, at 320, 390 and 1280 px, for loading, refused, unavailable and substitutes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11 files changed,
+342
−88
AGENTS.md+16 −6fixtures/editor-entry.js+20 −0fixtures/engines/first-reveal.mjs+5 −2fixtures/engines/wait-keys.mjs+124 −0fixtures/fonts-gate.mjs+16 −2internal/docs/fonts_browser_test.go+98 −44internal/docs/fonts_engines_browser_test.go+22 −4internal/docs/render.go+3 −3internal/docs/static/{editor.46336512a20874d7.js => editor.c2c7dc07e5705e7c.js}+12 −12internal/docs/static/{fontsgate.c5a7dd05de721ce2.js => fontsgate.3a8c20da76487d78.js}+1 −1internal/docs/views/show.html+25 −14
CI passed — run details
Intent
AGENTS.mdLoading diff…
fixtures/editor-entry.jsLoading diff…
fixtures/engines/first-reveal.mjsLoading diff…
fixtures/engines/wait-keys.mjsLoading diff…
fixtures/fonts-gate.mjsLoading diff…
internal/docs/fonts_browser_test.goLoading diff…
internal/docs/fonts_engines_browser_test.goLoading diff…
internal/docs/render.goLoading diff…
internal/docs/static/{editor.46336512a20874d7.js => editor.c2c7dc07e5705e7c.js}Loading diff…
internal/docs/static/{fontsgate.c5a7dd05de721ce2.js => fontsgate.3a8c20da76487d78.js}Loading diff…
internal/docs/views/show.htmlLoading diff…