Skip to content

Build your personal knowledge base with Trilium Notes

fix collapse tree keyboard shortcut

azivner20c14a192066
diff --git a/public/javascripts/note_tree.js b/public/javascripts/note_tree.js
index 68a5604948..90a0842d32 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();