From 20c14a192066920800cb8c0b25578c12f4c18d7d Mon Sep 17 00:00:00 2001 From: azivner Date: Tue, 26 Dec 2017 11:00:04 -0500 Subject: [PATCH] fix collapse tree keyboard shortcut --- public/javascripts/note_tree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/javascripts/note_tree.js b/public/javascripts/note_tree.js index 68a560494..90a0842d3 100644 --- a/public/javascripts/note_tree.js +++ b/public/javascripts/note_tree.js @@ -616,7 +616,7 @@ const noteTree = (function() { node.visit(node => node.setExpanded(false)); } - $(document).bind('keydown', 'alt+c', collapseTree); + $(document).bind('keydown', 'alt+c', () => collapseTree()); // don't use shortened form since collapseTree() accepts argument function scrollToCurrentNote() { const node = getCurrentNode();