mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01: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:
@@ -513,10 +513,8 @@ async function loadNote(noteId) {
|
||||
return new NoteFull(treeCache, row);
|
||||
}
|
||||
|
||||
function focus() {
|
||||
const note = getCurrentNote();
|
||||
|
||||
getComponent(note.type).focus();
|
||||
function focusOnTitle() {
|
||||
$noteTitle.focus();
|
||||
}
|
||||
|
||||
messagingService.subscribeToSyncMessages(syncData => {
|
||||
@@ -554,7 +552,7 @@ export default {
|
||||
getCurrentNoteType,
|
||||
getCurrentNoteId,
|
||||
newNoteCreated,
|
||||
focus,
|
||||
focusOnTitle,
|
||||
getAttributes,
|
||||
showAttributes,
|
||||
refreshAttributes,
|
||||
|
@@ -100,7 +100,7 @@ const keyBindings = {
|
||||
return false;
|
||||
},
|
||||
"return": node => {
|
||||
noteDetailService.focus();
|
||||
noteDetailService.focusOnTitle();
|
||||
|
||||
return false;
|
||||
},
|
||||
|
Reference in New Issue
Block a user