Graphics.DisableRightClickMenus - lordmundi/wikidoctest GitHub Wiki

Disable Right Click Menus

« Running without a border and blipper menu | EDGE User’s Guide | Removing Viewport Borders »

For EDGE instances running without any intended user interaction (such as on a TV or fixed display), you may want to remove the possibility of a stray mouse opening a menu.

You will want to of course first looking into methods of Running Fullscreen and Running Without Border and Blipper Menu, but after that, you may want to also remove the possibility of a right click opening the DOUG popup menu.

You can do that by adding a script into your display's GUI block with the following lines:

bind $dougmain <ButtonRelease-2> { }
bind $dougmain <ButtonRelease-3> { }
bind $dougmain <ButtonPress-2> { }
bind $dougmain <ButtonPress-3> { }

Those lines will remove the possibility of a right-click or middle click opening the DOUG popup menu.