From d31090c3d55aa57452c221e645a489d50996280e Mon Sep 17 00:00:00 2001 From: wukko Date: Tue, 16 Jul 2024 22:03:16 +0600 Subject: [PATCH] web/Omnibox: ignore keyboard shortcuts when dialog is visible --- web/src/components/save/Omnibox.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/components/save/Omnibox.svelte b/web/src/components/save/Omnibox.svelte index 63f6c1df..63d68fa9 100644 --- a/web/src/components/save/Omnibox.svelte +++ b/web/src/components/save/Omnibox.svelte @@ -5,6 +5,8 @@ import { t } from "$lib/i18n/translations"; + import dialogs from "$lib/dialogs"; + import { updateSetting } from "$lib/state/settings"; import type { DownloadModeOption } from "$lib/types/settings"; @@ -65,7 +67,7 @@ }; const handleKeydown = (e: KeyboardEvent) => { - if (!linkInput) { + if (!linkInput || $dialogs.length > 0) { return; }