Default browser's context menu on mouse context click ie on rightclick

Hi guys,

I needed default browsers’s mouse context menu to appear in my web app, (so my non tech savy users may use copy paste commands :)) so I tried a few things and ended up with a a simple hackish solution :slight_smile:

just put this line in your open event (or wherever you feel it is needed):

me.ExecuteJavaScript("document.body.removeEventListener('contextmenu',Xojo.input.contextClick);")

It will certainly remove all context clicks event from your app, but right clicking your links will bring up standard browser menu where users may open links in new windows so that works for me. I didn’t really try to return the event - since I dont need it.

Mouse button details, in for example mouseup event, can still be used without problems.

This request is tracked as feedback://showreport?report_id=23071

thanks, I’ll put a link to this in the ticket

LOL the feedback is from 2012 !