oficina / slides Public

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>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 7a4fe6dbd545f163c1bafca56aee711655f49515 parent 02e5202
10 files changed, +240 −68
  • fixtures/box-menu.mjs +20 −20
  • fixtures/box-menu.test.mjs +8 −6
  • fixtures/editor-entry.js +3 −2
  • fixtures/stage-focus.mjs +54 −18
  • fixtures/stage-focus.test.mjs +77 −0
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/static/editor.7e6f04f973b047b7.js +17 −0
  • internal/slides/static/editor.b0388f89d501d89f.js +0 −17
  • internal/slidestest/browser_quieter_box_test.go +9 −4
  • internal/slidestest/browser_quieter_fixes_test.go +51 −0
fixtures/box-menu.mjs

Loading diff…

fixtures/box-menu.test.mjs

Loading diff…

fixtures/editor-entry.js

Loading diff…

fixtures/stage-focus.mjs

Loading diff…

fixtures/stage-focus.test.mjs

Loading diff…

internal/slides/credits/assets.json

Loading diff…

internal/slides/static/editor.7e6f04f973b047b7.js

Loading diff…

internal/slides/static/editor.b0388f89d501d89f.js

Loading diff…

internal/slidestest/browser_quieter_box_test.go

Loading diff…

internal/slidestest/browser_quieter_fixes_test.go

Loading diff…