Merge pull request #275 from Zombienaute/master

Map loses focus when zooming in on cluster with keyboard
This commit is contained in:
Dave Leaver
2013-12-16 13:17:20 -08:00

View File

@ -599,6 +599,11 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
} else if (this.options.zoomToBoundsOnClick) {
e.layer.zoomToBounds();
}
// Focus the map again for keyboard users.
if (e.originalEvent.keyCode === 13) {
map._container.focus();
}
},
_showCoverage: function (e) {