wip: close importer dialog on escape in any

This commit is contained in:
Yohan Boniface 2024-06-11 12:34:20 +02:00
parent 460843b900
commit c51f8ae5ce

View file

@ -547,6 +547,8 @@ U.Map = L.Map.extend({
if (e.key === 'Escape') {
if (this.dialog.visible) {
this.dialog.close()
} else if (this.importer.dialog.visible) {
this.importer.dialog.close()
} else if (this.editEnabled && this.editTools.drawing()) {
this.editTools.stopDrawing()
} else if (this.measureTools.enabled()) {