From 125012cba779086e526fa763cb0bfde59451fda6 Mon Sep 17 00:00:00 2001 From: azivner Date: Sun, 17 Dec 2017 16:56:30 -0500 Subject: [PATCH] ctrl+. shortcut for scroll to current note which also allows to switch quickly to tree from editor --- public/javascripts/note_tree.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/javascripts/note_tree.js b/public/javascripts/note_tree.js index 42eb8b842..d53f1fbee 100644 --- a/public/javascripts/note_tree.js +++ b/public/javascripts/note_tree.js @@ -650,6 +650,8 @@ const noteTree = (function() { createNote(node, node.data.note_id, 'into', node.data.is_protected); }); + $(document).bind('keydown', 'ctrl+.', scrollToCurrentNote); + return { reload, collapseTree,