From b560966027157a484c60060f05f3455e480bfcbc Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Mon, 16 Jun 2025 01:48:56 +0300 Subject: [PATCH] Force using shift modifier when selecting another spline --- web/js/spline_editor.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/web/js/spline_editor.js b/web/js/spline_editor.js index a0d643f..3f4aec4 100644 --- a/web/js/spline_editor.js +++ b/web/js/spline_editor.js @@ -928,11 +928,13 @@ this.lastMousePosition = { x: this.width/2, y: this.height/2 }; this.vis.render(); }) .event("mousedown", () => { - if (this.activeSplineIndex !== splineIndex) { - this.activeSplineIndex = splineIndex; - this.refreshSplineElements(); - } - }); + if (pv.event.shiftKey) { + if (this.activeSplineIndex !== splineIndex) { + this.activeSplineIndex = splineIndex; + this.refreshSplineElements(); + } + }} + ); this.lineObjects.push(lineObj); }