no map._popup check needed

This commit is contained in:
Steve Kashishian 2014-11-06 13:02:21 -06:00
parent ead96e500e
commit 1eae1719bb

View File

@ -143,7 +143,7 @@ L.Map.Keyboard = L.Handler.extend({
} else if (key in this._zoomKeys) {
map.setZoom(map.getZoom() + this._zoomKeys[key]);
} else if (key === 27 && map._popup) {
} else if (key === 27) {
map.closePopup();
} else {