From 56d2d3cd4a556fd88fd3018716a7b3f974a4e305 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sun, 15 Feb 2015 12:19:55 +0200 Subject: add underscore, implement ctrl-click to append to selection --- src/client/view/graph_view.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/client/view/graph_view.js') 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); } -- cgit v1.3.1