Editor: a box's text taking focus selects it; marks act on the card's box
Tab into a box's text (or focus it any other way) left the card on the slide's options, or on another box's: only a click selected. The format bar's focus hook now names the box the text is in (a table cell's is the table) and the entry selects it (final review, finding 3). The marks kept acting on the text the caret was last in: type in A, choose heading B from the Boxes list, and Bold changed A while the card showed B. The bar now acts only when the text it holds is what the card shows, the box or the notes, and is disabled otherwise (finding 2). TestTidyMarksActOnTheCardsBox and TestTidyFocusSelectsTheBox hold it. TestTidyCardFollowsSelection waits for the link prompt's close task, which gives the caret back to the heading and now selects it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6 files changed,
+220
−27
fixtures/editor-entry.js+20 −4fixtures/format-bar.mjs+48 −8fixtures/format-bar.test.mjs+21 −1internal/slides/credits/assets.json+1 −1internal/slides/static/{editor.f1987b1749dfacd9.js => editor.1d17938a8290aca3.js}+13 −13internal/slidestest/browser_editor_tidy_test.go+117 −0
fixtures/editor-entry.jsLoading diff…
fixtures/format-bar.mjsLoading diff…
fixtures/format-bar.test.mjsLoading diff…
internal/slides/credits/assets.jsonLoading diff…
internal/slides/static/{editor.f1987b1749dfacd9.js => editor.1d17938a8290aca3.js}Loading diff…
internal/slidestest/browser_editor_tidy_test.goLoading diff…