summaryrefslogtreecommitdiff
path: root/src/client/view/graph_view.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-02-15 12:19:55 +0200
committerAlon Levy <alon@pobox.com>2015-02-15 12:19:55 +0200
commit56d2d3cd4a556fd88fd3018716a7b3f974a4e305 (patch)
tree14d192b53889254537bb43a477a0c7cb29d68916 /src/client/view/graph_view.js
parent4cc97d52608ceaf3efc91b63485f6aad11207bdf (diff)
add underscore, implement ctrl-click to append to selection
Diffstat (limited to 'src/client/view/graph_view.js')
-rw-r--r--src/client/view/graph_view.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js
index 205ba0fe..abe95d7b 100644
--- a/src/client/view/graph_view.js
+++ b/src/client/view/graph_view.js
@@ -320,7 +320,7 @@ function GraphView(spec) {
graph.links_rm([that.link]);
});
view.edge_info.show(d);
- selection.update([src, dst]);
+ selection.update([src, dst], d3.event.ctrlKey);
});
link.attr("class", function(d, i){
@@ -453,7 +453,7 @@ function GraphView(spec) {
}
if (!temporary) {
svgInput.enable(this, d, nodeTextX(d));
- selection.update([d]);
+ selection.update([d], d3.event.ctrlKey);
showNodeInfo(graph.find_node__by_id(this.parentNode.id));
}
d3.event.stopPropagation();
@@ -516,7 +516,7 @@ function GraphView(spec) {
return;
}
d3.event.stopPropagation();
- selection.update([d]);
+ selection.update([d], d3.event.ctrlKey);
if(!temporary) {
showNodeInfo(d);
}