Disable JavaScript
Posted: Tue Apr 08, 2025 11:58 am
Hi,
I'm using a popup menu on a WebViewGadget to provide a context menu. The problem is, when the menu is open, the WebViewGadget still responds to the mouse moving, etc., causing issues. I tried DisableGadget, but it didn't work. Is it possible to temporarily disable JavaScript while the menu is open? I imagine I'd then need a way to detect when the menu closes.
I found this: https://developer.apple.com/documentati ... references, but I don't really know how to access it using CocoaMessage.
I'm using a popup menu on a WebViewGadget to provide a context menu. The problem is, when the menu is open, the WebViewGadget still responds to the mouse moving, etc., causing issues. I tried DisableGadget, but it didn't work. Is it possible to temporarily disable JavaScript while the menu is open? I imagine I'd then need a way to detect when the menu closes.
I found this: https://developer.apple.com/documentati ... references, but I don't really know how to access it using CocoaMessage.