Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context menu control #340

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mitchcapper
Copy link
Contributor

This adds setContextMenuEnabled to the webui object for users to be able to turn it on and off. I think the best reason to allow a user to use a 3rd party context menu like: https://github.com/fkhadra/react-contexify

A few other minor things:
*) Used passive event binding for situations where we don't modify the event object
*) Moved the context menu bind off body to the document itself. Otherwise you can right click on the lower part of the window with shorter pages.
*) To avoid duplicating code I moved the load handler inside the main class. There may be some specific reason it wasn't, but I didn't see what it was.

@AlbertShown
Copy link
Contributor

Thank you 👍
Needs to be tested first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants