diff options
| author | Alon Levy <alon@pobox.com> | 2015-02-15 19:59:35 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-02-15 19:59:35 +0200 |
| commit | 30707a57ab89c8575bec985c8400ff0f990bce92 (patch) | |
| tree | 1c8a6fb2ca3aa6bd210704b4aaf47de622a9f559 /src/client/view/graph_view.js | |
| parent | 61df9468f8519ee800cd1be51f2b867f7b203131 (diff) | |
client: make shift+click be selection augmentation for better pc/mac compatibility, instead of ctrl+click
Diffstat (limited to 'src/client/view/graph_view.js')
| -rw-r--r-- | src/client/view/graph_view.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index 1c4f6334..3d39c03f 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -277,7 +277,7 @@ function GraphView(spec) { graph.links_rm([that.link]); }); view.edge_info.show(d); - selection.update([src, dst], d3.event.ctrlKey); + selection.update([src, dst], d3.event.shiftKey); }); link.attr("class", function(d, i){ @@ -410,7 +410,7 @@ function GraphView(spec) { } if (!temporary) { svgInput.enable(this, d, nodeTextX(d)); - selection.update([d], d3.event.ctrlKey); + selection.update([d], d3.event.shiftKey); showNodeInfo(graph.find_node__by_id(this.parentNode.id)); } d3.event.stopPropagation(); @@ -473,7 +473,7 @@ function GraphView(spec) { return; } d3.event.stopPropagation(); - selection.update([d], d3.event.ctrlKey); + selection.update([d], d3.event.shiftKey); if(!temporary) { showNodeInfo(d); } |
