From ba1f6955be392947e3e1438250b3f5e272ee5ecc Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sun, 12 Apr 2015 00:41:57 +0200 Subject: client: add F6 shortcut to zoom to selection --- src/client/keyshortcuts.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/client') 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()); -- cgit v1.3.1