sindresorhus/electron-context-menu

Context menu in BrowserView (right click)

josephernest opened this issue · 5 comments

Congrats for your project @sindresorhus, which looks very useful!

Just to be sure, you say:

Electron doesn't have a built-in context menu. You're supposed to handle that yourself.

Is that true also for BrowserView elements?

I mean when we have a "browser inside an Electron app", do we also have to use electron-context-menu as well?

Or can we ask BrowserView to use the default Chromium context menu:

?

Yes, Electron doesn't have the Chrome context menu, even in BrowserView.

Thank you @sindresorhus for your answer.

Do you have an example code / template of menu using your electron-context-menu, as close as possible as the original Chrome context menu? I see there are many options, you probably have such an example handy?

The defaults should be pretty close to Chrome, except missing some things that are not important. I modeled the default menu on Safari as Chrome generally is not good at UX.

Are you able to reproduce the problem @sindresorhus?
Can we reopen the issue #124 so that if someone has an idea he can contribute too?
Thank you

Ah, I confused this with the webview tag. BrowserView is indeed not yet supported here. #125