How to open context menu in a panel on left click

Dec 14, 2020

Copy link to clipboard

Copied

I was wondering if there is a simple way to open the context menu on left click event. I have tried triggering the oncontextmenu event using javascript, but the native context menu is not showing. Does anybody have any idea how to do that ?

TOPICS
Scripting

Views

42

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

How to open context menu in a panel on left click

Dec 14, 2020

Copy link to clipboard

Copied

I was wondering if there is a simple way to open the context menu on left click event. I have tried triggering the oncontextmenu event using javascript, but the native context menu is not showing. Does anybody have any idea how to do that ?

TOPICS
Scripting

Views

43

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Dec 14, 2020 0
Dec 14, 2020

Copy link to clipboard

Copied

You can't do that with JavaScript. But why would you? The functions available in context menus are exposed to scripting.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 14, 2020 0
Dec 14, 2020

Copy link to clipboard

Copied

The requirement from the customer is to have the context menu displayed, when the user hovers a line from a list, and left clicks over an icon that is displayed only on hovering.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 14, 2020 0