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>
4 files changed,
+46
−16
fixtures/editor-entry.js+2 −0fixtures/menu.mjs+12 −7fixtures/menu.test.mjs+23 −0internal/docs/static/{editor.4db3c5911184ef23.js => editor.cbd2f10270dbb05d.js}+9 −9
fixtures/editor-entry.jsLoading diff…
fixtures/menu.mjsLoading diff…
fixtures/menu.test.mjsLoading diff…
internal/docs/static/{editor.4db3c5911184ef23.js => editor.cbd2f10270dbb05d.js}Loading diff…