To work around atom/atom#20034, replace atom's context menus with an HTML/CSS version so that electron menus are never invoked.
You can install this from within Atom, via the normal package installation process ("install" menu under settings).
This package monkey-patches part of atom.contextMenu
to not use electron.remote.Menu
and instead create an HTML/CSS menu via the context-menu
library.
This is only a workaround to the real problem, which lies within electron. As of atom 0.47.0
, the electron version has been updated, fixing this issue.
HTML context menus have some downsides, such as being unable to go outside the window and looking different from native context menus. This package vaguely styles the menus similarly to native.
This only gets applied on darwin and for versions 19.0.0
(macOS 10.15 Catalina) and above.
This is written in plain javascript so there is no build process required. To test changes, just use apm link .
from the root folder to have atom symlink it into ~/.atom/packages
so that it gets loaded the next time you reload atom.
See the CONTRIBUTING file for how to help out.
This project is MIT licensed, as found in the LICENSE file.