[OpenLayers-Users] How to access mouse modifier during
"featureselected"
Marcel Ruff
mr at marcelruff.info
Thu Jan 28 13:41:36 EST 2010
Hi,
i assume it is trivial, but i couldn't figure it out.
When a user clicks on my markers I would like to see if it was a "Right
mouse click" or a "Shift Left mouse click" etc.
How can I do this? Here is my code snippet:
....
this.markersLayer.events.register("featureselected", this.markersLayer,
this.__onMarkerSelect);
...
this.__onMarkerSelect = function(evt) {
if (evt.isShiftPressed()) { // How???
}
Thank you
Marcel
More information about the Users
mailing list