Editor: dismissing the card returns focus to a control you can see
Opened from a menu (View's Inspector row, Delete slide in the Slide menu or a strip item's menu), the card now remembers the menu's own button, its summary, rather than the row, which is hidden once the menu closes. A return target that cannot take focus when the card is dismissed (gone, disabled, not drawn) falls back to Format, and a focus() that does not land does too. Format gets aria-label="Format", since it is its icon alone in a narrow window.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7 files changed,
+230
−25
fixtures/head.mjs+32 −7fixtures/head.test.mjs+91 −4internal/slides/credits/assets.json+1 −1internal/slides/static/{editor.014dc9dc11538dd3.js => editor.9ed13c9265c27119.js}+12 −12internal/slides/templates/editor.html+1 −1internal/slidestest/browser_editor_tidy_test.go+90 −0internal/slidestest/editor_tidy_test.go+3 −0
fixtures/head.mjsLoading diff…
fixtures/head.test.mjsLoading diff…
internal/slides/credits/assets.jsonLoading diff…
internal/slides/static/{editor.014dc9dc11538dd3.js => editor.9ed13c9265c27119.js}Loading diff…
internal/slides/templates/editor.htmlLoading diff…
internal/slidestest/browser_editor_tidy_test.goLoading diff…
internal/slidestest/editor_tidy_test.goLoading diff…