Prevent the geometry viewer grabbing key presses when not in focus under Firefox, IE and Edge. Fixes #4255

This commit is contained in:
Aditya Toshniwal
2019-06-05 12:00:09 +01:00
committed by Dave Page
parent 9a00a8a60b
commit d90136d93d
4 changed files with 16 additions and 7 deletions

View File

@@ -45,6 +45,8 @@ let GeometryViewer = {
geometry_viewer_panel.on(wcDocker.EVENT.VISIBILITY_CHANGED, function (visible) {
if (visible) {
self.map_component.resizeMap();
} else {
self.map_component.loseFocus();
}
});
}
@@ -186,6 +188,10 @@ function initMapComponent() {
vectorLayer.clearLayers();
},
'loseFocus': function() {
lmap.fire('blur');
},
'renderMap': function (dataObj) {
let geoJSONs = dataObj.geoJSONs,
SRID = dataObj.selectedSRID,