toggling the left pane will toggle the focus between tree and detail, #3563

This commit is contained in:
zadam
2023-01-31 22:35:01 +01:00
parent 68a03211ce
commit 2e181d0fb1
2 changed files with 15 additions and 1 deletions

View File

@@ -887,6 +887,11 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
}
}
async focusTreeEvent() {
this.tree.$container.focus();
this.tree.setFocus(true);
}
/** @returns {FancytreeNode} */
async getNodeFromPath(notePath, expand = false, logErrors = true) {
utils.assertArguments(notePath);