mirror of
https://github.com/zadam/trilium.git
synced 2025-02-22 22:13:07 +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);
|
noteDetailService.addDetailLoadedListener(node.data.noteId, noteLoadedListener);
|
||||||
}
|
}
|
||||||
|
|
||||||
// we use noFocus because when we reload the tree because of background changes
|
await node.setActive(true);
|
||||||
// we don't want the reload event to steal focus from whatever was focused before
|
|
||||||
await node.setActive(true, { noFocus: true });
|
|
||||||
|
|
||||||
clearSelectedNodes();
|
clearSelectedNodes();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue