fonsp / Pluto.jl

🎈 Simple reactive notebooks for Julia
https://plutojl.org/
MIT License
4.91k stars 284 forks source link

Make cell context menu tab-friendly #2759

Closed fonsp closed 6 months ago

fonsp commented 7 months ago

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

github-actions[bot] commented 7 months ago

Try this Pull Request!

Open Julia and type:

  julia> import Pkg
  julia> Pkg.activate(temp=true)
  julia> Pkg.add(url="https://github.com/fonsp/Pluto.jl", rev="tab-focus-context-menu")
  julia> using Pluto