<div dir="ltr">Hi, <div><br></div><div>that might be the case. But how do I know about the events that are available for that parameter?</div><div>This example uses the "done" event. Where is documented which others are available?</div>

<div><a href="http://trac.osgeo.org/openlayers/wiki/Handlers">http://trac.osgeo.org/openlayers/wiki/Handlers</a><br></div><div><br></div><div style>Kind regards, </div><div style>Andreas</div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">2013/1/29 Grégory COLLIN <span dir="ltr"><<a href="mailto:gcollin@v3d.fr" target="_blank">gcollin@v3d.fr</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<br>
<br>
Isn't there a problem with your constructor ?<br>
<br>
I read : {Object} An object whose properties correspond to abstracted<br>
events or sequences of browser events.  The values for these properties<br>
are functions defined by the control that get called by the handler.<br>
<br>
For the second argument, but you passed a null value...<br>
<br>
Not sure, but check it.<br>
<br>
br,<br>
<br>
Le Tue, 29 Jan 2013 15:47:25 +0100,<br>
Andreas Schnieders <<a href="mailto:schnieders.a@gmail.com">schnieders.a@gmail.com</a>> a écrit :<br>
<div class="HOEnZb"><div class="h5"><br>
> Hi there,<br>
><br>
> I'm stuck with the Handler.MOD_CTRL thing.<br>
><br>
> I have a vector layer with a number of kml features. I attach a<br>
> selector control like this kmlLayer.events.on({<br>
>                     ...<br>
>                     "featureselected":          onFeatureSelect,<br>
>                     ....<br>
>                 });<br>
><br>
>     kmlFeatureSelector = new<br>
> OpenLayers.Control.SelectFeature([kmlLayer, zoneLayer]);<br>
> map.addControl(kmlFeatureSelector);<br>
><br>
> If I now create a handler like this<br>
> tmpCtrlHandler = new OpenLayers.Handler(kmlFeatureSelector, null,<br>
> {keyMask: OpenLayers.Handler.MOD_CTRL});<br>
><br>
> I get<br>
> --<br>
> [15:17:07.655] TypeError: a is undefined @<br>
> <a href="http://localhost:8000/spatioweb-client/js/OpenLayers/OpenLayers.js?v=1:599" target="_blank">http://localhost:8000/spatioweb-client/js/OpenLayers/OpenLayers.js?v=1:599</a><br>
><br>
> from<br>
><br>
> function onFeatureSelect(event) {<br>
><br>
> console.log("tmpCtrlHandler.checkModifiers(): " +<br>
> tmpCtrlHandler.checkModifiers()); ...<br>
> }<br>
><br>
> Shouldn't there be a simple way to detect CTRL-Key-pressed on a<br>
> event? I'm already thinking of ways to use jQuery events in<br>
> OpenLayers. Does anyone have experiences with that? o_O<br>
><br>
> Many thanks in advance,<br>
> Andreas<br>
<br>
</div></div></blockquote></div><br></div>