Kirsten,<br><br>This code will work, at least for ModifyFeature in IE6 & IE7 (just changed "window" to "document", see #1108):<br><pre>// Patch on Keyboard Handler for IE<br>OpenLayers.Handler.Keyboard.prototype.activate = function() {<br>
if (OpenLayers.Handler.prototype.activate.apply(this, arguments)) {<br> for (var i = 0; i < this.KEY_EVENTS.length; i++) {<br> OpenLayers.Event.observe(<br> document, this.KEY_EVENTS[i], this.eventListener);<br>
}<br> return true;<br> } else {<br> return false;<br> }<br>};<br><br>OpenLayers.Handler.Keyboard.prototype.deactivate = function() {<br> var deactivated = false;<br> if (OpenLayers.Handler.prototype.deactivate.apply(this, arguments)) {<br>
for (var i = 0; i < this.KEY_EVENTS.length; i++) {<br> OpenLayers.Event.stopObserving(<br> document, this.KEY_EVENTS[i], this.eventListener);<br> }<br> deactivated = true;<br>
}<br> return deactivated;<br>};</pre><br>Working example: <a href="http://www.icc.cat/vissir2/?lang=en_UK">http://www.icc.cat/vissir2/?lang=en_UK</a> => measure tools.<br>I don't know how to create/use patches, yet.<br>
<br>Oscar.<br><br><br>2008/6/11 Christopher Schmidt <<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>>:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Wed, Jun 11, 2008 at 10:48:27AM +0200, Kirsten Grimm [geOps] wrote:<br>
> Hello,<br>
> when trying to delete polygon or line vertices with the ModifyFeature<br>
> Control in IE7, nothing happens, the keypress event isn't fired. In<br>
> FF everything works fine. Is there a solution for this problem?<br>
<br>
</div>No, but there is a Trac ticket -- and patches are welcome.<br>
<br>
#864<br>
KeyboardDefaults broken in IE<br>
#1292<br>
keyboardDefaults broken in Safari 3<br>
</blockquote></div>