feat: better handle ctrl+shift clicks and selections
All checks were successful
🚀 Lint & Test & Deploy / release (pull_request) Successful in 3m45s
All checks were successful
🚀 Lint & Test & Deploy / release (pull_request) Successful in 3m45s
This commit is contained in:
@@ -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 || {};
|
||||
|
||||
Reference in New Issue
Block a user