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

View File

@ -480,10 +480,14 @@ function handleClick(e){
} }
} }
// if this is a shift-click, just find and highlight the pass-connected group // if this is a shift-click, just find and highlight the pass-connected group
// and list the nodes (or nodenames, preferably)
if(e.shiftKey) { if(e.shiftKey) {
getNodeGroup(w); getNodeGroup(w);
nodelist = group; 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); hiliteNode(nodelist);
setStatus(s1, s2); setStatus(s1, s2);