From ba20f5791cf0e340a6a10fdfeecfdb7c5caeb6d7 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 27 Feb 2025 19:21:43 +0100 Subject: [PATCH] fix: shift-click on a path should toggle edit This was broken in 4adc5585606d8f14e53523048034331fe44c2092 Co-authored-by: David Larlet --- umap/static/umap/js/modules/rendering/ui.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/umap/static/umap/js/modules/rendering/ui.js b/umap/static/umap/js/modules/rendering/ui.js index c812e3d4..1de26c61 100644 --- a/umap/static/umap/js/modules/rendering/ui.js +++ b/umap/static/umap/js/modules/rendering/ui.js @@ -60,8 +60,7 @@ const FeatureMixin = { if (event.originalEvent.ctrlKey || event.originalEvent.metaKey) { this.feature.datalayer.edit(event) } else { - if (this.feature._toggleEditing) this.feature._toggleEditing(event) - else this.feature.edit(event) + this.feature.toggleEditing(event) } } else if (!this._map.editTools?.drawing()) { this._map._umap.editContextmenu.open(