From 142e89a59a4de2f367bcf1d19c0c4edb34b6c76f Mon Sep 17 00:00:00 2001 From: tglide <26071571+TGlide@users.noreply.github.com> Date: Tue, 16 May 2023 15:46:07 +0100 Subject: [PATCH] fix: enter bug --- src/routes/console/commandCenter.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/console/commandCenter.svelte b/src/routes/console/commandCenter.svelte index e39c113ca..f65de369d 100644 --- a/src/routes/console/commandCenter.svelte +++ b/src/routes/console/commandCenter.svelte @@ -27,6 +27,7 @@ }); function handleKeyDown(event: KeyboardEvent) { + if (!open) return; if (event.key === 'ArrowDown') { event.preventDefault(); selected = selected === results.length - 1 ? 0 : selected + 1;