diff --git a/js/plugin/Sidebar.js b/js/plugin/Sidebar.js index b86dfd8..ec4bbf1 100644 --- a/js/plugin/Sidebar.js +++ b/js/plugin/Sidebar.js @@ -26,6 +26,10 @@ BR.Sidebar = L.Control.Sidebar.extend({ this.on('closing', this._notifyOnClose, this); this.on('toggleExpand', this._notifyOnResize, this); + this.on('closing', function () { + this._map.getContainer().focus(); + }, this); + this._rememberTabState(); if (L.Browser.touch && BR.Browser.touchScreenDetectable && !BR.Browser.touchScreen) {