mirror of
https://github.com/zadam/trilium.git
synced 2025-01-06 07:13:48 +08:00
enter on note in note tree leads to note title instead of content (second enter then goes to content)
This commit is contained in:
parent
8b41c1ef31
commit
22e905aa99
2 changed files with 4 additions and 6 deletions
|
@ -513,10 +513,8 @@ async function loadNote(noteId) {
|
||||||
return new NoteFull(treeCache, row);
|
return new NoteFull(treeCache, row);
|
||||||
}
|
}
|
||||||
|
|
||||||
function focus() {
|
function focusOnTitle() {
|
||||||
const note = getCurrentNote();
|
$noteTitle.focus();
|
||||||
|
|
||||||
getComponent(note.type).focus();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
messagingService.subscribeToSyncMessages(syncData => {
|
messagingService.subscribeToSyncMessages(syncData => {
|
||||||
|
@ -554,7 +552,7 @@ export default {
|
||||||
getCurrentNoteType,
|
getCurrentNoteType,
|
||||||
getCurrentNoteId,
|
getCurrentNoteId,
|
||||||
newNoteCreated,
|
newNoteCreated,
|
||||||
focus,
|
focusOnTitle,
|
||||||
getAttributes,
|
getAttributes,
|
||||||
showAttributes,
|
showAttributes,
|
||||||
refreshAttributes,
|
refreshAttributes,
|
||||||
|
|
|
@ -100,7 +100,7 @@ const keyBindings = {
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
"return": node => {
|
"return": node => {
|
||||||
noteDetailService.focus();
|
noteDetailService.focusOnTitle();
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue