# Perspective disable right click menu on touchscreen

**URL:** <https://forum.inductiveautomation.com/t/perspective-disable-right-click-menu-on-touchscreen/65595>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [October 24, 2022, 1:35pm UTC](https://forum.inductiveautomation.com/t/perspective-disable-right-click-menu-on-touchscreen/65595 "2022-10-24T13:35:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsui](https://avatars.discourse-cdn.com/v4/letter/d/ecb155/32.png) [@dsui](https://forum.inductiveautomation.com/u/dsui)\
**Post date:** [October 24, 2022, 1:35pm UTC](https://forum.inductiveautomation.com/t/perspective-disable-right-click-menu-on-touchscreen/65595/1 "2022-10-24T13:35:26Z")

</div>

I am currently developing a Perspective app using Ignition 8.1 and using a Google Chrome on a Phoenix HMI Panel PC (has Windows 10 OS) for the session. One of the pages has a set of buttons used for motor control; hold down to write high to the PLC tag, release to write low to the PLC tag.

If the button is held down for an extended duration, the right click context menu will pop up. I've disabled the NoViewContextMenu flag in the registry editor though this seems to just disable the right click menu for the desktop; no effect on the web browser. Wondering if there is a setting either in Chrome or the Ignition gateway that needs to be changed.

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [October 24, 2022, 1:42pm UTC](https://forum.inductiveautomation.com/t/perspective-disable-right-click-menu-on-touchscreen/65595/2 "2022-10-24T13:42:28Z")

</div>

The driver for your touchscreen should have a way to disable it. Contact Phoenix if you aren't able to find it.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [October 24, 2022, 2:50pm UTC](https://forum.inductiveautomation.com/t/perspective-disable-right-click-menu-on-touchscreen/65595/3 "2022-10-24T14:50:41Z")

</div>

1. Select any component you would like to disable the context menu for.
2. Right-click those components, and select "Configure Events".
3. Add a new Script Action.
4. For the body of the code, supply `pass`.
5. Select the "Disable Default" checkbox below the code panel.
6. Click OK.
