jarek-foksa / xel

Xel - Widget toolkit for building native-like Electron and Web apps
https://xel-toolkit.org
Other
677 stars 58 forks source link

How to programatically open the context menu? #104

Closed rathboma closed 3 years ago

rathboma commented 3 years ago

I have an app with some HTML I do not control, but I do get a callback for 'rightClick', and I'd like to open a Xel context menu.

Is this possible?

Thanks for your work!

jarek-foksa commented 3 years ago

This should be possible, please check https://gist.github.com/jarek-foksa/fd67b58472492f722576bdbfa62e68b0 which demonstrates how to open a menu programatically.