diff options
| author | Alon Levy <alon@pobox.com> | 2015-04-12 00:41:57 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-04-12 00:41:57 +0200 |
| commit | ba1f6955be392947e3e1438250b3f5e272ee5ecc (patch) | |
| tree | 025f6f4db8a745238131666c6b9bebf54392a7a2 | |
| parent | ac239c21581bd0a4c88c17f08a2dc33c15efe247 (diff) | |
client: add F6 shortcut to zoom to selection
| -rw-r--r-- | src/client/keyshortcuts.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/keyshortcuts.js b/src/client/keyshortcuts.js index 1c5ed64a..2f5b66a8 100644 --- a/src/client/keyshortcuts.js +++ b/src/client/keyshortcuts.js @@ -22,8 +22,13 @@ function install() { if (e.altKey && e.ctrlKey && 'i' === key) { $('#textanalyser').focus(); } + if (e.keyIdentifier === 'F6') { + rz_core.main_graph_view.nodes__user_visible(selection.selected_nodes(), true); + handled = true; + } if (e.altKey && e.ctrlKey && 'o' === key) { search.focus(); + handled = true; } if (e.ctrlKey && 'a' === key && e.target === document.body) { selection.select_nodes(rz_core.main_graph.nodes()); |
