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
This commit is contained in:
mf
2026-06-21 12:49:41 +02:00
committed by ArkHost
parent db2bef892a
commit 32ec62419d
+2 -1
View File
@@ -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) {