webui
webui copied to clipboard
Context menu control
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.
Thank you 👍 Needs to be tested first