From 42906ea8b4976e60adc28fc034a0dc772dd3a3b0 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Sat, 2 Dec 2023 09:55:58 +0100 Subject: [PATCH] Add non working way to open files dialog --- umap/static/umap/js/umap.core.js | 1 + umap/static/umap/js/umap.js | 4 ++++ 2 files changed, 5 insertions(+) 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')