From 26602e8226fe84d2ec247fe2b55d0d7bfef8fcb7 Mon Sep 17 00:00:00 2001 From: zadam Date: Mon, 20 Dec 2021 22:10:21 +0100 Subject: [PATCH] focus "jump to note" in new tab when there are no workspaces, #2455 --- src/public/app/widgets/type_widgets/empty.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/public/app/widgets/type_widgets/empty.js b/src/public/app/widgets/type_widgets/empty.js index 2f35d8c3a..6a718084e 100644 --- a/src/public/app/widgets/type_widgets/empty.js +++ b/src/public/app/widgets/type_widgets/empty.js @@ -84,5 +84,11 @@ export default class EmptyTypeWidget extends TypeWidget { .on('click', () => this.triggerCommand('hoistNote', {noteId: workspaceNote.noteId})) ); } + + if (workspaceNotes.length === 0) { + this.$autoComplete + .trigger('focus') + .trigger('select'); + } } }