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);
}
}

View file

@ -197,20 +197,20 @@ span.fancytree-focused .fancytree-title, span.fancytree-focused.fancytree-select
color: var(--active-item-text-color) !important;
background-color: var(--active-item-background-color) !important;
border-color: var(--main-background-color) !important; /* invisible border */
border-radius: 3px;
border-radius: 5px;
}
span.fancytree-selected .fancytree-title {
color: var(--hover-item-text-color) !important;
background-color: var(--hover-item-background-color) !important;
border-color: var(--main-background-color) !important; /* invisible border */
border-radius: 3px;
border-radius: 5px;
font-style: italic;
}
span.fancytree-node:hover span.fancytree-title {
border-color: var(--main-border-color) !important;
border-radius: 3px;
border-radius: 5px;
}
.ui-autocomplete {