Skip to content

best way to save what you love

web/Omnibox: ignore keyboard shortcuts when dialog is visible

wukkod31090c3d55a
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;
}