oficina / slides Public

Editor: undo shows in the Deck settings field still focused

After a change in Deck settings the document went back on the first
undo, but the field the person had just used, still focused, kept
showing the new value (setValue never writes into the focused control),
so the undo looked as if it did nothing and a second was pressed.

An undo or redo now lets the fill write focused fields for a second.
Test: TestOneUndoTakesBackADeckSettingsChange, and a node test.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 1c687182d385a839d541322aaf625b0ddb082966 parent 3395115
6 files changed, +113 −23
  • fixtures/editor-entry.js +3 −2
  • fixtures/inspector-block.mjs +10 −2
  • fixtures/inspector.test.mjs +19 −1
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/static/{editor.b84fc015e0f3efec.js => editor.14a94c886e9cda83.js} +17 −17
  • internal/slidestest/browser_settings_undo_test.go +63 −0
fixtures/editor-entry.js

Loading diff…

fixtures/inspector-block.mjs

Loading diff…

fixtures/inspector.test.mjs

Loading diff…

internal/slides/credits/assets.json

Loading diff…

internal/slides/static/{editor.b84fc015e0f3efec.js => editor.14a94c886e9cda83.js}

Loading diff…

internal/slidestest/browser_settings_undo_test.go

Loading diff…