mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Crude fix for issue#273 map loses focus when zooming in on cluster with keyboard
This commit is contained in:
Vendored
+5
@@ -604,6 +604,11 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
||||
} else if (this.options.zoomToBoundsOnClick) {
|
||||
e.layer.zoomToBounds();
|
||||
}
|
||||
|
||||
// Focus the map again for keyboard users.
|
||||
if (typeof e.originalEvent.keyCode !== 'undefined' && e.originalEvent.keyCode === 13) {
|
||||
document.getElementById(map._container).focus();
|
||||
}
|
||||
},
|
||||
|
||||
_showCoverage: function (e) {
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -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 (typeof e.originalEvent.keyCode !== 'undefined' && e.originalEvent.keyCode === 13) {
|
||||
document.getElementById(map._container).focus();
|
||||
}
|
||||
},
|
||||
|
||||
_showCoverage: function (e) {
|
||||
|
||||
Reference in New Issue
Block a user