This makes the cell context menu behave like a non-modal dialog:
Make the interactive elements focusable.
When it opens, focus the first element.
When it loses focus (e.g. by tabbing out of it), close it.
Pressing escape closes it.
When it closes, return focus to the element that was focused before it opened.
This makes the cell context menu behave like a non-modal dialog:
Make the interactive elements focusable. When it opens, focus the first element. When it loses focus (e.g. by tabbing out of it), close it. Pressing escape closes it. When it closes, return focus to the element that was focused before it opened.
https://github.com/fonsp/Pluto.jl/assets/6933510/b2584092-e3f2-4211-a168-0d7aaee1f06b