From 95ec93eeada9bf062e01e1e77b67b8f0343a51bf Mon Sep 17 00:00:00 2001 From: Max Richter Date: Thu, 12 Feb 2026 22:46:50 +0100 Subject: [PATCH] feat: better handle ctrl+shift clicks and selections --- app/src/lib/graph-interface/graph/mouse.events.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/lib/graph-interface/graph/mouse.events.ts b/app/src/lib/graph-interface/graph/mouse.events.ts index 935c784..336fd1f 100644 --- a/app/src/lib/graph-interface/graph/mouse.events.ts +++ b/app/src/lib/graph-interface/graph/mouse.events.ts @@ -189,6 +189,10 @@ export class MouseEventManager { // if we clicked on a node if (clickedNodeId !== -1) { + if (event.ctrlKey && event.shiftKey) { + this.state.tryConnectToDebugNode(clickedNodeId); + return; + } if (this.state.activeNodeId === -1) { this.state.activeNodeId = clickedNodeId; // if the selected node is the same as the clicked node @@ -222,10 +226,6 @@ export class MouseEventManager { this.state.boxSelection = true; } - if (event.ctrlKey && event.shiftKey && this.state.activeNodeId !== -1) { - this.state.tryConnectToDebugNode(this.state.activeNodeId); - } - const node = this.graph.getNode(this.state.activeNodeId); if (!node) return; node.state = node.state || {};