feat/debug-node #41

Merged
max merged 17 commits from feat/debug-node into main 2026-02-12 23:20:59 +01:00
Showing only changes of commit 95ec93eead - Show all commits

View File

@@ -189,6 +189,10 @@ export class MouseEventManager {
// if we clicked on a node // if we clicked on a node
if (clickedNodeId !== -1) { if (clickedNodeId !== -1) {
if (event.ctrlKey && event.shiftKey) {
this.state.tryConnectToDebugNode(clickedNodeId);
return;
}
if (this.state.activeNodeId === -1) { if (this.state.activeNodeId === -1) {
this.state.activeNodeId = clickedNodeId; this.state.activeNodeId = clickedNodeId;
// if the selected node is the same as the clicked node // if the selected node is the same as the clicked node
@@ -222,10 +226,6 @@ export class MouseEventManager {
this.state.boxSelection = true; 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); const node = this.graph.getNode(this.state.activeNodeId);
if (!node) return; if (!node) return;
node.state = node.state || {}; node.state = node.state || {};