INTERNECION I see alot of people viewed this but aren't answering. I cannot give you the exact code for some reason but let me experiment a bit before I can.
Varrience unfortunately no, there is a way to do it in normal js however i'll just give a short answer because i'm to lazy to explain how it exactly why you can't but it requires changing listeners that you don't access to so it's not really worth your time
ackvonhuelio Varrience I know that in whatever version of processing js KA uses there is enableContextMenu();, maybe there's also disableContextMenu();? idk
Varrience ackvonhuelio there refering to CDO though as far as i know i've looked through there functions and it doesn't seem to have something like that