Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix focus on moving notes with keyboard
zadama33ac65fdff1
diff --git a/src/public/app/widgets/note_tree.js b/src/public/app/widgets/note_tree.jsindex 0879d45dc4..34121b80fc 100644--- a/src/public/app/widgets/note_tree.js+++ b/src/public/app/widgets/note_tree.js@@ -994,8 +994,6 @@ export default class NoteTreeWidget extends TabAwareWidget {const nextNode = activeNode ? (activeNode.getNextSibling() || activeNode.getPrevSibling() || activeNode.getParent()) : null;const activeNotePath = activeNode ? treeService.getNotePath(activeNode) : null;- console.log(activeNotePath, activeNodeFocused);-const nextNotePath = nextNode ? treeService.getNotePath(nextNode) : null;const activeNoteId = activeNode ? activeNode.data.noteId : null;@@ -1117,6 +1115,10 @@ export default class NoteTreeWidget extends TabAwareWidget {if (node) {node.setActive(true, {noEvents: true, noFocus: !activeNodeFocused});++ if (activeNodeFocused) {+ node.setFocus(true);+ }}else {// this is used when original note has been deleted and we want to move the focus to the note above/below