feat/debug-node #41
@@ -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 || {};
|
||||||
|
|||||||
Reference in New Issue
Block a user