I have a web application in which I connected the mouse and mouse down events; I use them to select and manipulate the graphic language for which my application is an editor. To prevent the right-click context menu from being displayed / context displayed by Firefox, I placed:
if (evt.preventDefault) { evt.preventDefault(); }
at the top of each of my mouse and mouse event handlers. I do not want to return a lie; I really want the event to spread.
On a Mac, the right-click menu is not displayed; this is what i expect. However, on Windows this stubbornly appears, although Firebug confirms that my call to "preventDefault" is occurring, and also that "defaultPrevented" is set to true.
Any idea what gives? Anyone else run into this issue? I am running Firefox 6.0.2 on both Mac and Windows.
[Update: Later versions of Firefox gave consistent results on Mac and Windows: the context menu was not suppressed on both platforms.]
source share