web/Omnibox: ignore keyboard shortcuts when dialog is visible

This commit is contained in:
wukko 2024-07-16 22:03:16 +06:00
parent fa835d0010
commit d31090c3d5
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

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