better behavior of activateNote frontend script

This commit is contained in:
zadam
2019-08-12 22:25:42 +02:00
parent dfa1ab65c6
commit 493cd1a7e0
2 changed files with 9 additions and 5 deletions

View File

@@ -562,7 +562,7 @@ async function collapseTree(node = null) {
}
function focusTree() {
$tree.find('.fancytree-container').focus();
getTree().setFocus();
}
async function scrollToActiveNote() {
@@ -573,8 +573,8 @@ async function scrollToActiveNote() {
const node = await expandToNote(activeContext.notePath);
node.makeVisible({scrollIntoView: true});
node.setFocus(true);
await node.makeVisible({scrollIntoView: true});
node.setFocus();
}
}