oficina / slides Public

Editor: back to a box, and one Esc, reach the card from anywhere

Review of B7, round 1.

Choosing the box that is already selected (from the notes, say) is now
heard, so the card shows its options again; a refresh that only
re-marks the same box is said as kept and leaves the card alone, so a
colleague's change no longer moves it off the notes.

One Esc deselects a box with the caret in its text: prosemirror-view
marks every Escape handled (captureKeyDown, keyCode 27) without doing
anything visible, so selection.mjs no longer defers to that. A dialog
or menu still takes the first Esc, and so does an IME composition.
Esc returns the card from the notes even after a refresh has taken the
caret out of them (heard in the capture phase).

Tests: the same box after the notes; one Esc in a heading, and the link
prompt taking the first; a colleague's refresh keeps the notes; a shape
selected at 1280x480 scrolls inside the card again; the removal clock
starts at the delete.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev fe5fbabdb9564a42e6170ef977ccbeddf543818e parent 08d0914
8 files changed, +209 −54
  • fixtures/editor-entry.js +16 −5
  • fixtures/inspect.test.mjs +8 −0
  • fixtures/selection.mjs +23 −6
  • fixtures/selection.test.mjs +22 −0
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/static/{editor.2b962d0af940b242.js => editor.a00285a24fd77e8a.js} +13 −13
  • internal/slidestest/browser_editor_tidy_test.go +121 −27
  • internal/slidestest/editor_tidy_test.go +5 −2
fixtures/editor-entry.js

Loading diff…

fixtures/inspect.test.mjs

Loading diff…

fixtures/selection.mjs

Loading diff…

fixtures/selection.test.mjs

Loading diff…

internal/slides/credits/assets.json

Loading diff…

internal/slides/static/{editor.2b962d0af940b242.js => editor.a00285a24fd77e8a.js}

Loading diff…

internal/slidestest/browser_editor_tidy_test.go

Loading diff…

internal/slidestest/editor_tidy_test.go

Loading diff…