fix ctrl+. to switch focus to note tree

This commit is contained in:
zadam
2019-06-16 10:41:22 +02:00
parent ad46ba7d0f
commit 12b17b1e9e
2 changed files with 6 additions and 7 deletions

View File

@@ -520,13 +520,12 @@ async function scrollToActiveNote() {
const activeContext = noteDetailService.getActiveTabContext();
if (activeContext && activeContext.notePath) {
$tree.find('.fancytree-container').focus();
const node = await expandToNote(activeContext.notePath);
node.makeVisible({scrollIntoView: true});
node.setFocus();
await activateNote(activeContext.notePath);
node.setFocus(true);
}
}