Re-enabling right click

Re-enabling right click

Recently, the right click on our front-end is disabled. Why did we decide to disable the right click?

Our application is a web application that runs on a machine. It has a touch screen. When a user presses a very long time on the screen, it means that he performs a right click on that specific spot where he clicks.

We do not want that a user sees a context menu that is always shown when right clicking. So we decided to disable that right click in our application.

But this has also a drawback. A developer or tester sometimes needs that right click. I need it when I create the selenium scripts. I need to see the path of an element. Which classes do it have and so on.

Fortunately there is a plugin in chrome that enables the right click again. The plugin is called Enable Right Click and can be found in the Chrome Web Store.