Hey,
I have a game that makes excessive use of right click and has a bunch of transparent UI (text) elements on the screen. Now, those "Text" objects are really stylized Textbox objects. I use the Advanced Textbox plugin + some extra CSS. This is because making Text look the same on all browsers is a nightmare, and Spritefont isn't flexible enough for my needs.
I know C2 prevents context menu from opening on right click, but that's not the case with Textboxes apparently. I've added a little Javascript using the Browser object:
document.oncontextmenu = document.body.oncontextmenu = function() {return false;}
Works fine in Chrome and Opera, but NOT IN FREAKING FIREFOX.
How do I disable context menu from appearing in Firefox when right clicking a Textbox?