mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 06:15:48 +01:00
after creating new note, it is focused and now also selected so renaming is super easy, #318
This commit is contained in:
@@ -283,6 +283,10 @@ function focusOnTitle() {
|
||||
$noteTitle.focus();
|
||||
}
|
||||
|
||||
function focusAndSelectTitle() {
|
||||
$noteTitle.focus().select();
|
||||
}
|
||||
|
||||
/**
|
||||
* Since detail loading may take some time and user might just browse through the notes using UP-DOWN keys,
|
||||
* we intentionally decouple activation of the note in the tree and full load of the note so just avaiting on
|
||||
@@ -342,6 +346,7 @@ export default {
|
||||
getCurrentNoteType,
|
||||
getCurrentNoteId,
|
||||
focusOnTitle,
|
||||
focusAndSelectTitle,
|
||||
saveNote,
|
||||
saveNoteIfChanged,
|
||||
noteChanged,
|
||||
|
||||
Reference in New Issue
Block a user