Merge remote-tracking branch 'origin/stable'

This commit is contained in:
zadam 2022-01-17 23:48:44 +01:00
commit 3055ed86ec

View file

@ -52,7 +52,11 @@ export default class NoteTitleWidget extends NoteContextAwareWidget {
this.$noteTitle.on('input', () => this.spacedUpdate.scheduleUpdate()); this.$noteTitle.on('input', () => this.spacedUpdate.scheduleUpdate());
this.$noteTitle.on('blur', () => { this.deleteNoteOnEscape = false }); this.$noteTitle.on('blur', () => {
this.spacedUpdate.updateNowIfNecessary();
this.deleteNoteOnEscape = false;
});
utils.bindElShortcut(this.$noteTitle, 'esc', () => { utils.bindElShortcut(this.$noteTitle, 'esc', () => {
if (this.deleteNoteOnEscape && this.noteContext.isActive()) { if (this.deleteNoteOnEscape && this.noteContext.isActive()) {