diff options
| author | Alon Levy <alon@pobox.com> | 2015-04-12 19:47:00 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-04-12 19:47:00 +0200 |
| commit | bd18c814067c94f35fdb3b09510ff3cf1c550d96 (patch) | |
| tree | 4c3b41632d39ca2890c0b0d937b1ffa1b724e587 /src/client | |
| parent | 3e0d24858628a8e104aa26c727d8ff3c9538db01 (diff) | |
client: F7 shortcut for zen mode
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/keyshortcuts.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/keyshortcuts.js b/src/client/keyshortcuts.js index 13477d7a..760242f2 100644 --- a/src/client/keyshortcuts.js +++ b/src/client/keyshortcuts.js @@ -26,6 +26,12 @@ function install() { rz_core.main_graph_view.nodes__user_visible(selection.related(), true); handled = true; } + if (e.keyIdentifier === 'F7') { + if (!selection.is_empty()) { + rz_core.main_graph_view.zen_mode__toggle(); + } + handled = true; + } if (e.altKey && e.ctrlKey && 'o' === key) { search.focus(); handled = true; |
