diff --git a/expertWires.js b/expertWires.js index e7a147f..6e770df 100644 --- a/expertWires.js +++ b/expertWires.js @@ -384,7 +384,10 @@ function handleClick(e){ } // we have a node, but maybe we clicked over a transistor var nodelist=[w]; - if(e.shiftKey) nodelist=getNodeGroup(w); + if(e.shiftKey) { + getNodeGroup(w); + nodelist = group; + } // match the coordinate against transistor gate bounding boxes x=cx-400; y=grChipSize-cy; diff --git a/kioskWires.js b/kioskWires.js index 0828079..fb2e40f 100644 --- a/kioskWires.js +++ b/kioskWires.js @@ -169,7 +169,10 @@ function handleClick(e){ var x = localx(hilite, e.clientX)/zoom; var y = localy(hilite, e.clientY)/zoom; var w = findNodeNumber(x,y); - if(e.shiftKey) hiliteNode(getNodeGroup(w)); + if(e.shiftKey) { + getNodeGroup(w); + hiliteNode(group); + } else {var a=new Array(); a.push(w); hiliteNode(a);} var cx = Math.round(x*grChipSize/600); var cy = Math.round(y*grChipSize/600);