From 27fb1d539e1eba2d2d415dc3c76e418c305ff432 Mon Sep 17 00:00:00 2001 From: BigEd Date: Sun, 19 Dec 2010 17:54:37 +0000 Subject: [PATCH] bugfix: shift-click to highlight a pass-connected node-group should work on gates too --- expertWires.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/expertWires.js b/expertWires.js index bbd7613..f141edb 100644 --- a/expertWires.js +++ b/expertWires.js @@ -391,10 +391,6 @@ function handleClick(e){ } // we have a node, but maybe we clicked over a transistor var nodelist=[w]; - if(e.shiftKey) { - getNodeGroup(w); - nodelist = group; - } // match the coordinate against transistor gate bounding boxes x=cx-400; y=grChipSize-cy; @@ -407,6 +403,12 @@ function handleClick(e){ s2='transistor: ' + nodes[w].gates[i].name + ' on ' + s2; } } + // if this is a shift-click, just find and highlight the pass-connected group + if(e.shiftKey) { + getNodeGroup(w); + nodelist = group; + s2 = "nodegroup from " + s2 + } hiliteNode(nodelist); setStatus(s1, s2); if(ctrace) console.log(s1, s2);