ID:162497
 
So it seems you can use right click functionality if you disable popup menus, but I want both, right clicking and popup menus.

How to compromise? Is there a manual way of bringing up a pop up menu?
There's no way of manually calling the popup menus because they are handled on the client side of things. You're pretty much out of luck if you want both. The best you can do is modify the client's show_popup_menus variable at runtime, if you want to be able to right-click as a target for specific actions only.