front: ignore shift+key combinations if url bar is focused

prevents shortcuts from getting triggered by accident when manually typing out url
This commit is contained in:
dumbmoron 2023-12-26 00:55:30 +00:00
parent a19cb5513f
commit 798d0d7242
No known key found for this signature in database
GPG key ID: C59997C76C6A8E5F

View file

@ -626,6 +626,8 @@ document.onkeydown = (e) => {
if (e.metaKey || e.ctrlKey || e.key === "/") eid("url-input-area").focus();
if (e.key === "Escape" || e.key === "Clear") clearInput();
if (e.target === eid("url-input-area")) return;
// top buttons
if (e.key === "D") pasteClipboard();
if (e.key === "K") changeSwitcher('audioMode', 'false');