oficina / docs Public

web: menu commands leave the caret out while the Format sheet is open

Fable's follow-up B on #181. menu.mjs handed the caret back to the
document after every command, ignoring refocus(), so a menu command run
with the phone's Format sheet open (from •••) closed the sheet through
the editor's focusin and flashed the keyboard. mountMenu now takes
refocus, as createToolbar does, and editor-entry passes it the same
answer.

menu.test.mjs: a command refocuses the document with no refocus given
or a true one, and not with a false one; it failed before (focused
once).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 033f9d673d5401efb51a2c852bc39d48f30036a5 parent af93afa
4 files changed, +46 −16
  • fixtures/editor-entry.js +2 −0
  • fixtures/menu.mjs +12 −7
  • fixtures/menu.test.mjs +23 −0
  • internal/docs/static/{editor.4db3c5911184ef23.js => editor.cbd2f10270dbb05d.js} +9 −9
fixtures/editor-entry.js

Loading diff…

fixtures/menu.mjs

Loading diff…

fixtures/menu.test.mjs

Loading diff…

internal/docs/static/{editor.4db3c5911184ef23.js => editor.cbd2f10270dbb05d.js}

Loading diff…