mirror of
https://github.com/zadam/trilium.git
synced 2025-02-20 21:13:11 +08:00
focus and activate should work together
This commit is contained in:
parent
3b98428c8c
commit
ac75fd2ca3
1 changed files with 1 additions and 3 deletions
|
@ -191,9 +191,7 @@ async function activateNote(notePath, noteLoadedListener) {
|
|||
noteDetailService.addDetailLoadedListener(node.data.noteId, noteLoadedListener);
|
||||
}
|
||||
|
||||
// we use noFocus because when we reload the tree because of background changes
|
||||
// we don't want the reload event to steal focus from whatever was focused before
|
||||
await node.setActive(true, { noFocus: true });
|
||||
await node.setActive(true);
|
||||
|
||||
clearSelectedNodes();
|
||||
|
||||
|
|
Loading…
Reference in a new issue