mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
fix ctrl+. to switch focus to note tree
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user