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
enter on note in note tree leads to note title instead of content (second enter then goes to content)
azivner22e905aa99c4
diff --git a/src/public/javascripts/services/note_detail.js b/src/public/javascripts/services/note_detail.jsindex ad6a11a5ea..6cae0511fd 100644--- a/src/public/javascripts/services/note_detail.js+++ b/src/public/javascripts/services/note_detail.js@@ -513,10 +513,8 @@ async function loadNote(noteId) {return new NoteFull(treeCache, row);}-function focus() {- const note = getCurrentNote();-- getComponent(note.type).focus();+function focusOnTitle() {+ $noteTitle.focus();}messagingService.subscribeToSyncMessages(syncData => {@@ -554,7 +552,7 @@ export default {getCurrentNoteType,getCurrentNoteId,newNoteCreated,- focus,+ focusOnTitle,getAttributes,showAttributes,refreshAttributes,diff --git a/src/public/javascripts/services/tree_keybindings.js b/src/public/javascripts/services/tree_keybindings.jsindex df70bca91e..7219994d82 100644--- a/src/public/javascripts/services/tree_keybindings.js+++ b/src/public/javascripts/services/tree_keybindings.js@@ -100,7 +100,7 @@ const keyBindings = {return false;},"return": node => {- noteDetailService.focus();+ noteDetailService.focusOnTitle();return false;},