mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
wip: close importer dialog on escape in any
This commit is contained in:
parent
460843b900
commit
c51f8ae5ce
1 changed files with 2 additions and 0 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue