fix: shift-click on a path should toggle edit

This was broken in 4adc558560

Co-authored-by: David Larlet <david@larlet.fr>
This commit is contained in:
Yohan Boniface 2025-02-27 19:21:43 +01:00
parent 0fe2103b71
commit ba20f5791c

View file

@ -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(