mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
activating next element in tree after deleting the tree node
This commit is contained in:
parent
001d91172a
commit
a25f15c9ab
@ -23,7 +23,15 @@ const keybindings = {
|
||||
// remove from recent notes
|
||||
recentNotes = 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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user