From bf5a9f134d36b0c52dc561ef3f5abcdc825c1a6a Mon Sep 17 00:00:00 2001 From: Chris Paganon Date: Tue, 14 Jul 2026 18:36:34 +0200 Subject: [PATCH] fix(editor): refocus open in-note search on Ctrl+F (#216) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pressing ctrl-F doesn’t refocus the search field if there is already a search term, it only focuses search on 1st open of the search field. This PR fixes it so that every time the user presses CTRL+F, the search field is focused again. Tested on linux. Reviewed-on: https://codeberg.org/ArkHost/HelixNotes/pulls/216 --- src/lib/components/Editor.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/components/Editor.svelte b/src/lib/components/Editor.svelte index 4ed1d5a..dd0b886 100644 --- a/src/lib/components/Editor.svelte +++ b/src/lib/components/Editor.svelte @@ -3669,6 +3669,7 @@ export function openNoteSearch() { noteSearchOpen = true; + tick().then(() => noteSearchInput?.focus()); } function closeNoteSearch() {