[OpenLayers-Dev] Unhighlight feature + KEY_ESC : IE bug
adube at mapgears.com
Mon Aug 3 12:09:14 EDT 2009
I just noticed that the bug only exists with line & polygons. Points
have the good behavior. Try to draw points + lines + polygons, then
select them all with a box and press 'esc' to unselect them all : they
get ALL unselected but only the points get their actual "default" style
An other weird behavior : if you use shift+esc, all features get drawn
back to "default" normally...
Comments would be welcomed, please.
Alexandre Dube wrote:
> I made an example out of the select-feature.html example. I only
> added a keyboard handler to the SelectFeature control and it still do
> the problem. See the example (1).
> I opened a ticket for this (2). Currently unassigned and without a patch.
> (2) http://trac.openlayers.org/ticket/2214
> Alexandre Dube wrote:
>> I tried an other key (instead of 'esc') and the problem went away. So
>> it really looks like a 'esc' key problem in IE. Can anyone comments
>> about this, please ?
>> Alexandre Dube wrote:
>>> I have a very odd behavior with the SelectFeature control in IE +
>>> keyboard handler using the KEY_ESC to unselect all features. I use a
>>> customized DeleteFeature control, who is responsible to set the feature
>>> "state" to delete and redrawing it. It has it's own SelectFeature
>>> control for feature selection.
>>> When unselecting by 'clicking out', it works fine. But when hitting
>>> "esc", it DOES unselect all features + the unhighlight function is
>>> called, but features stay the "selected" color.
>>> I checked the select-feature example (1) and it doesn't have this
>>> behavior, so it looks like a combination of ESC key problem +
>>> SelectFeature Control... See a live example of the problem (using
>>> trunk) (2).
>>> I'm out of solution for this one. Any comments ?
>>> (1) http://openlayers.org/dev/examples/select-feature.html
>>> N.B. Problem viewed in IE7, don't know about other IE versions.
More information about the Dev