mirror of
https://github.com/zadam/trilium.git
synced 2025-02-21 21:43:55 +08:00
fix ctrl+. to switch focus to note tree
This commit is contained in:
parent
ad46ba7d0f
commit
12b17b1e9e
2 changed files with 6 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue