mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-02 19:09:55 -06:00
focus and activate should work together
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user