summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-04-12 00:41:57 +0200
committerAlon Levy <alon@pobox.com>2015-04-12 00:41:57 +0200
commitba1f6955be392947e3e1438250b3f5e272ee5ecc (patch)
tree025f6f4db8a745238131666c6b9bebf54392a7a2 /src/client
parentac239c21581bd0a4c88c17f08a2dc33c15efe247 (diff)
client: add F6 shortcut to zoom to selection
Diffstat (limited to 'src/client')
-rw-r--r--src/client/keyshortcuts.js5
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());