Phaser API Documentation

  Version: 
disableContextMenu()

Description:

Attempts to disable the context menu from appearing if you right-click on the browser.

Works by listening for the contextmenu event and prevent defaulting it.

Use this if you need to enable right-button mouse support in your game, and the browser menu keeps getting in the way.

Returns:
Description:

This Mouse Manager instance.

Since: 3.0.0