$(document).on("contextmenu",function(e){e.preventDefault()});
This will of course prevent all right mouse clicks, but how can I prevent right mouse clicks UNLESS they have been defined within easyui using for example onContextMenu ?
I want to disable right mouse clicks in all areas, unless I have allowed them.