Editor: focus stays on the stage after a box is deleted or moved
Deleting a box from its menu left focus nowhere, and a box moved from its menu lost focus when its text had the caret, because the stage's reload takes focus in text with it. Now, after Delete from the menu or the key, focus goes to the next box drawn, else the previous, else the slide itself. After a move, a layer change or a region row, focus goes back to that box, its text included, across the reload. So a second Delete deletes the next box, and Shift+F10 opens the moved box's menu. TestQuieterKeyboardOnlyShape now expects focus on the box beside the deleted one, where it expected the card back on the slide's options.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 files changed,
+240
−68
fixtures/box-menu.mjs+20 −20fixtures/box-menu.test.mjs+8 −6fixtures/editor-entry.js+3 −2fixtures/stage-focus.mjs+54 −18fixtures/stage-focus.test.mjs+77 −0internal/slides/credits/assets.json+1 −1internal/slides/static/editor.7e6f04f973b047b7.js+17 −0internal/slides/static/editor.b0388f89d501d89f.js+0 −17internal/slidestest/browser_quieter_box_test.go+9 −4internal/slidestest/browser_quieter_fixes_test.go+51 −0
fixtures/box-menu.mjsLoading diff…
fixtures/box-menu.test.mjsLoading diff…
fixtures/editor-entry.jsLoading diff…
fixtures/stage-focus.mjsLoading diff…
fixtures/stage-focus.test.mjsLoading diff…
internal/slides/credits/assets.jsonLoading diff…
internal/slides/static/editor.7e6f04f973b047b7.jsLoading diff…
internal/slides/static/editor.b0388f89d501d89f.jsLoading diff…
internal/slidestest/browser_quieter_box_test.goLoading diff…
internal/slidestest/browser_quieter_fixes_test.goLoading diff…