<div dir="ltr">Hi there, <div><br></div><div style>I'm stuck with the Handler.MOD_CTRL thing.</div><div style><br></div><div style>I have a vector layer with a number of kml features. I attach a selector control like this</div>

<div style><div>    kmlLayer.events.on({     </div><div>                    ...</div><div>                    "featureselected":          onFeatureSelect,</div><div>                    ....</div><div>                });</div>

<div><div><br></div><div>    kmlFeatureSelector = new OpenLayers.Control.SelectFeature([kmlLayer, zoneLayer]);</div><div>    map.addControl(kmlFeatureSelector);</div></div><div><br></div><div style>If I now create a handler like this</div>

<div style>tmpCtrlHandler = new OpenLayers.Handler(kmlFeatureSelector, null, {keyMask: OpenLayers.Handler.MOD_CTRL});<br></div><div style><br></div><div style>I get </div><div style><span style="white-space:pre">--</span></div>

<span style="white-space:pre">[15:17:07.655] TypeError: a is undefined @ <a href="http://localhost:8000/spatioweb-client/js/OpenLayers/OpenLayers.js?v=1:599">http://localhost:8000/spatioweb-client/js/OpenLayers/OpenLayers.js?v=1:599</a></span></div>

<div style><span style="white-space:pre"><br></span></div><div style><span style="white-space:pre">from<br></span><div style><br></div><div style><div>function onFeatureSelect(event) {</div><div><br></div><div><span class="" style="white-space:pre">       </span>console.log("tmpCtrlHandler.checkModifiers(): " + tmpCtrlHandler.checkModifiers());</div>

<div><span class="" style="white-space:pre">    </span></div><div><span class="" style="white-space:pre">...</span></div><div><span style="white-space:pre">}</span></div><div><span style="white-space:pre"><br></span></div><div style>

<span style="white-space:pre">Shouldn't there be a simple way to detect CTRL-Key-pressed on a event? I'm already thinking of ways to use jQuery events in OpenLayers. Does anyone have experiences with that? o_O</span></div>

<div style><span style="white-space:pre"><br></span></div><div style><span style="white-space:pre">Many thanks in advance, </span></div><div style><span style="white-space:pre">Andreas</span></div></div></div></div>