From f22c76d9fb751baa1c3097a70ecdde26a4bf0ea2 Mon Sep 17 00:00:00 2001 From: zadam Date: Tue, 27 Apr 2021 23:05:28 +0200 Subject: [PATCH] fix focusing tree from note detail, closes #1897 --- src/public/app/widgets/note_tree.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/public/app/widgets/note_tree.js b/src/public/app/widgets/note_tree.js index 961053d44..a1dcc129b 100644 --- a/src/public/app/widgets/note_tree.js +++ b/src/public/app/widgets/note_tree.js @@ -813,6 +813,7 @@ export default class NoteTreeWidget extends TabAwareWidget { const activeContext = appContext.tabManager.getActiveTabContext(); if (activeContext && activeContext.notePath) { + this.tree.$container.focus(); this.tree.setFocus(true); const node = await this.expandToNote(activeContext.notePath);