diff --git a/umap/static/umap/js/umap.core.js b/umap/static/umap/js/umap.core.js index 02384ec0..7b0fbb10 100644 --- a/umap/static/umap/js/umap.core.js +++ b/umap/static/umap/js/umap.core.js @@ -426,6 +426,7 @@ L.U.Keys = { I: 73, L: 76, M: 77, + O: 79, P: 80, S: 83, Z: 90, diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index 3619ab34..dfed30cc 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -563,6 +563,10 @@ L.U.Map.include({ L.DomEvent.stop(e) this.importer.open() } + if (key === L.U.Keys.O && modifierKey && this.editEnabled) { + L.DomEvent.stop(e) + this.importer.openFiles() + } if (key === L.U.Keys.H && modifierKey && this.editEnabled) { L.DomEvent.stop(e) this.help.show('edit')