Skip to content

Commit 816f7c1

Browse files
authored
Ignore esc as resetting index (#638)
1 parent 4d57c2a commit 816f7c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mapml/features/featureGroup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export var FeatureGroup = L.FeatureGroup.extend({
7979
this._map.featureIndex.inBoundFeatures[index].path.setAttribute("tabindex", 0);
8080
}
8181
}
82-
} else if (!(e.keyCode === 9 || e.keyCode === 16 || e.keyCode === 13)){
82+
} else if (!([9, 16, 13, 27].includes(e.keyCode))){
8383
this._map.featureIndex.currentIndex = 0;
8484
this._map.featureIndex.inBoundFeatures[0].path.focus();
8585
}

0 commit comments

Comments
 (0)