feat: when creating a new note, focus on title instead of body

This commit is contained in:
Baptiste Grob
2020-05-30 15:01:45 +02:00
parent 7204660009
commit b3e8d73a94

View File

@@ -153,7 +153,7 @@ class EditorCtrl extends PureCtrl {
this.loadPreferences();
if (note.dummy) {
this.focusEditor();
this.focusTitle();
}
if (previousNote && previousNote !== note) {
if (previousNote.dummy) {