• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

HTML5 SUGGESTION - Enable context menu in HTML5

R

rbfraphael

Guest
Hi!

Recently, I need to open the Inspector in HTML5 to analyze my game, but the context menu is disabled by the game's JS file. You need to find
Code:
document.body.oncontextmenu=function(){return !1}
in the game's JS file and replace it by anything other (like a simple
Code:
/*NULL*/
) to enable the context menu.

- PROBLEM -
No context menu enabled on HTML5 export module.

- SOLUTION (COMPLEX AND MUCH RISK) -
Edit the game's JS file and replace
Code:
document.body.oncontextmenu=function(){return !1}
to some null JS code (like
Code:
/*NULL*/
).

- SUGGESTION TO YOYO GAMES -
Create a checkbox in the HTML tab on GGS to enable or disable the context menu (right mouse button).

Thanks :)
 
Top