oficina / slides Public

Editor: Cmd-Z in Deck settings, and a forced refill instead of a timer

Replaces the one-second window that let any refill write a focused
control. Undo and redo now refill the inspector once, at once, writing
focused fields too; other refills (a colleague's change) still leave the
control in use alone.

Cmd/Ctrl-Z, Shift-Z and Ctrl-Y now pass the modal guard while Deck
settings is the open dialog (not in its text fields), so the keyboard
undoes there. Other dialogs and keys are unchanged.

Tests: keyboard undo/redo of each setting with the field focused, the
toolbar undo with the dialog closed, and a colleague's change not
replacing unfinished text in a block-card field.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev f18c97fa185aaed570d1c3b6870d624ab07e1571 parent 1c68718
7 files changed, +140 −79
  • fixtures/editor-entry.js +13 −4
  • fixtures/inspector-block.mjs +13 −9
  • fixtures/inspector.mjs +3 −2
  • fixtures/inspector.test.mjs +5 −6
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/static/{editor.14a94c886e9cda83.js => editor.232a5ee5a7c6c568.js} +17 −17
  • internal/slidestest/browser_settings_undo_test.go +88 −40
fixtures/editor-entry.js

Loading diff…

fixtures/inspector-block.mjs

Loading diff…

fixtures/inspector.mjs

Loading diff…

fixtures/inspector.test.mjs

Loading diff…

internal/slides/credits/assets.json

Loading diff…

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

Loading diff…

internal/slidestest/browser_settings_undo_test.go

Loading diff…