From 32ec62419dc28528ca292f79b56413b17fba23b5 Mon Sep 17 00:00:00 2001 From: mf Date: Sun, 21 Jun 2026 12:49:41 +0200 Subject: [PATCH] Focus sub-notebook input from context menu (#150) Focus the sub-notebook name field after choosing New Sub-notebook from a notebook context menu. Validation: pnpm build Reviewed-on: https://codeberg.org/ArkHost/HelixNotes/pulls/150 --- src/lib/components/Sidebar.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/components/Sidebar.svelte b/src/lib/components/Sidebar.svelte index 90963ae..6a6119e 100644 --- a/src/lib/components/Sidebar.svelte +++ b/src/lib/components/Sidebar.svelte @@ -257,7 +257,7 @@ } } - function startNewSubNotebook(nb: NotebookEntry) { + async function startNewSubNotebook(nb: NotebookEntry) { contextMenu = null; newNotebookParent = nb; newNotebookName = ''; @@ -266,6 +266,7 @@ if ($collapsedNotebooks.includes(nb.path)) { $collapsedNotebooks = $collapsedNotebooks.filter(p => p !== nb.path); } + await focusNewNotebookInput(); } async function handleRename(nb: NotebookEntry) {