Closed Massedil closed 7 months ago
There is the context event, but that has drawbacks:
dom.event.contextmenu.enabled = false
And because of stupidity there are browser plugins like:
https://addons.mozilla.org/nl/firefox/addon/re-enable-right-click/So, somewhere in the past there was a great HTML5 feature contextmenu attribute. It allowed what you want: add items to the context menu! But it is obsolete because only Firefox supported it.
And now there's a problem: there is no good alternative to create a right-click menu :crying_cat_face:
And now there's a problem: there is no good alternative to create a right-click menu
Perhaps the well appreciated right click app for Nextcloud has interesting php code to look at ? https://apps.nextcloud.com/apps/files_rightclick
@jsonoctopus sorry, that code is bad by design. It "disables" the browser context menu, as i said.
For example:
Custom right-click menu:
it prevents the default context menu
I think you can always access the browser context menu with "Maj" + "Right click", without any plugin. Am I wrong ?
Maybe we can inform snappymail users with a one time message, the first time the new snappymail context menu is displayed, that explains :
And add in the new snappymail context menu interface a "help icon" that display again this message ?
What do you think about that ?
right click image/link = No context menu
To improve user experience, maybe we can also display only the new context menu when the right click is on emails and disable it when it is inside email content ?
So that you always can right-click a link or an image.
I think you can always access the browser context menu with "Maj" + "Right click", without any plugin. Am I wrong ?
No idea, i will test that option.
I can confirm that under firefox the shift-right-click allows to see the browser built-in context menu
If implemented, ideally the context menu should only work while hovering specific areas of the webmail (message list, folder list, contact list, etc), somewhat like Roundcube's context menu plugin: https://github.com/johndoh/roundcube-contextmenu/
Since it will not work on touch screens, i won't work on this.
It can be really practical to have a right-click menu with some options :