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
activating next element in tree after deleting the tree node
azivnera25f15c9ab53
diff --git a/static/js/tree.js b/static/js/tree.jsindex f399de4449..ef32395948 100644--- a/static/js/tree.js+++ b/static/js/tree.js@@ -23,7 +23,15 @@ const keybindings = {// remove from recent notesrecentNotes = recentNotes.filter(note => note !== node.key);+ let next = node.getNextSibling();+ if (!next) {+ next = node.getParent();+ }+node.remove();++ // activate next element after this one is deleted so we don't lose focus+ next.setActive();}});}