This commit is contained in:
zadam
2020-01-19 19:33:35 +01:00
parent 8da094cd3c
commit bd8e5f255b
2 changed files with 12 additions and 8 deletions

View File

@@ -30,14 +30,9 @@ export default class NoteTitleWidget extends TabAwareWidget {
this.$noteTitle.on('input', () => this.titleChanged());
if (utils.isDesktop()) {
// keyboard plugin is not loaded in mobile
utils.bindElShortcut(this.$noteTitle, 'return', () => {
this.getComponent().focus();
return false; // to not propagate the enter into the editor (causes issues with codemirror)
});
}
utils.bindElShortcut(this.$noteTitle, 'return', () => {
this.trigger('focusOnDetail', {tabId: this.tabContext.tabId});
});
return this.$widget;
}