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>
8 files changed,
+209
−54
fixtures/editor-entry.js+16 −5fixtures/inspect.test.mjs+8 −0fixtures/selection.mjs+23 −6fixtures/selection.test.mjs+22 −0internal/slides/credits/assets.json+1 −1internal/slides/static/{editor.2b962d0af940b242.js => editor.a00285a24fd77e8a.js}+13 −13internal/slidestest/browser_editor_tidy_test.go+121 −27internal/slidestest/editor_tidy_test.go+5 −2
fixtures/editor-entry.jsLoading diff…
fixtures/inspect.test.mjsLoading diff…
fixtures/selection.mjsLoading diff…
fixtures/selection.test.mjsLoading diff…
internal/slides/credits/assets.jsonLoading diff…
internal/slides/static/{editor.2b962d0af940b242.js => editor.a00285a24fd77e8a.js}Loading diff…
internal/slidestest/browser_editor_tidy_test.goLoading diff…
internal/slidestest/editor_tidy_test.goLoading diff…