Wednesday, May 2, 2018

Is it possible to show an alternative menu when holding “Alt” on an opened context menu in Electron?

Leave a Comment

On macOS, when right-clicking on a file, then holding Alt, it does show more advanced options. Is it possible to reproduce it using Electron? Thank you!

1 Answers

Answers 1

The answer is yes. Although a built-in feature is not provided it is possible to customize your context menu & options as described here:

https://github.com/sindresorhus/electron-context-menu

https://github.com/parro-it/electron-contextmenu-middleware

Furthermore it's possible to customize shortcuts for your modifications this way:

https://electronjs.org/docs/tutorial/keyboard-shortcuts

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment