How to use right-click to finish drawing a Polygon in OpenLayers?
I'm using OpenLayers 2.13 and the DrawFeature control. By Default, the Polygon is completed, when you double click. Some of our clients are requesting that we allow the mouse right-click, to finish the polygon.
I tried adding a rightclick function to the OpenLayers.Handler.Polygon class, but it is never called. I also confirmed that the right click event is being registered in the activate method of the OpenLayers.Handler class.
How do I override this default behavior to allow the mouse right-click to finish the polygon?