mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Prevent the geometry viewer grabbing key presses when not in focus under Firefox, IE and Edge. Fixes #4255
This commit is contained in:
committed by
Dave Page
parent
9a00a8a60b
commit
d90136d93d
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user