Skip to content

Commit c490863

Browse files
committed
Added selection of all edges in the graph
Resolves #14
1 parent df74588 commit c490863

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/Graph.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,10 @@ class Graph extends React.Component {
285285
let components = this.graph0.selectAll('.node,.edge');
286286
this.selectComponents(components);
287287
}
288+
else if (event.key === 'A') {
289+
let components = this.graph0.selectAll('.edge');
290+
this.selectComponents(components);
291+
}
288292
else if (event.key === '?') {
289293
this.props.onHelp();
290294
}

src/KeyboardShortcutsDialog.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import CloseIcon from '@material-ui/icons/Close';
1515

1616
const keyboardShortcuts = [
1717
{key: 'Ctrl-A', description: 'Select all nodes and edges.'},
18+
{key: 'Ctrl-Shift-A', description: 'Select all edges.'},
1819
{key: 'Ctrl-C', description: 'Copy the selected node.'},
1920
{key: 'Ctrl-V', description: 'Paste the cut/copied node.'},
2021
{key: 'Ctrl-X', description: 'Cut the selected node.'},

0 commit comments

Comments
 (0)