give the names of the nodes in a shift-click group, if they have names

This commit is contained in:
BigEd 2010-12-22 21:16:50 +00:00
parent 09c578e361
commit 84b005673b
1 changed files with 5 additions and 1 deletions

View File

@ -480,10 +480,14 @@ function handleClick(e){
}
}
// if this is a shift-click, just find and highlight the pass-connected group
// and list the nodes (or nodenames, preferably)
if(e.shiftKey) {
getNodeGroup(w);
nodelist = group;
s2 = "nodegroup from " + s2 + " (nodes: " + group.join(",") + ")";
s2 = "nodegroup from " + s2 +
" (nodes: " +
group.map(function(x){return nodeName(x)?nodeName(x):x;}).join(",") +
")";
}
hiliteNode(nodelist);
setStatus(s1, s2);