mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
web/Omnibox: ignore keyboard shortcuts when dialog is visible
This commit is contained in:
parent
fa835d0010
commit
d31090c3d5
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue