mirror of
https://github.com/trebonian/visual6502.git
synced 2024-06-09 17:29:28 +00:00
bugfix: shift-click to highlight a pass-connected node-group should work on gates too
This commit is contained in:
parent
21c7a8ca90
commit
27fb1d539e
|
@ -391,10 +391,6 @@ function handleClick(e){
|
||||||
}
|
}
|
||||||
// we have a node, but maybe we clicked over a transistor
|
// we have a node, but maybe we clicked over a transistor
|
||||||
var nodelist=[w];
|
var nodelist=[w];
|
||||||
if(e.shiftKey) {
|
|
||||||
getNodeGroup(w);
|
|
||||||
nodelist = group;
|
|
||||||
}
|
|
||||||
// match the coordinate against transistor gate bounding boxes
|
// match the coordinate against transistor gate bounding boxes
|
||||||
x=cx-400;
|
x=cx-400;
|
||||||
y=grChipSize-cy;
|
y=grChipSize-cy;
|
||||||
|
@ -407,6 +403,12 @@ function handleClick(e){
|
||||||
s2='transistor: ' + nodes[w].gates[i].name + ' on ' + s2;
|
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);
|
hiliteNode(nodelist);
|
||||||
setStatus(s1, s2);
|
setStatus(s1, s2);
|
||||||
if(ctrace) console.log(s1, s2);
|
if(ctrace) console.log(s1, s2);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user