[OpenLayers-Users] How to access mouse modifier during "featureselected"

Marcel Ruff mr at marcelruff.info
Sun Feb 7 16:58:27 EST 2010


Ivan,

thank you for your help.

But I've tried this in the beginning,
there is no such altKey etc.

So, I'm still looking for the solution ....

regards
Marcel


Ivan Grcic schrieb:
> hi, just use firebug to browse trough evt object. should be something
> like evt.altKey. ctrlKey or shiftKey i think...
> cheers
>
> On Fri, Jan 29, 2010 at 7:11 PM, Marcel Ruff <mr at marcelruff.info> wrote:
>   
>> Can anybody give me a hint if it is possible?
>>
>> Thanks
>> Marcel
>>
>> Marcel Ruff schrieb:
>>     
>>> 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???
>>>   }
>>>
>>>
>>>
>>>
>>>       
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>>     
>
>
>
>   


-- 
Marcel Ruff
http://www.xmlBlaster.org
http://watchee.net
Phone: +49 7551 309371




More information about the Users mailing list