bugfix: shift-click to highlight a pass-connected node-group should work on gates too

This commit is contained in:
BigEd 2010-12-19 17:54:37 +00:00
parent 21c7a8ca90
commit 27fb1d539e
1 changed files with 6 additions and 4 deletions

View File

@ -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);