mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-29 09:58:27 +00:00
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:
parent
a19cb5513f
commit
798d0d7242
@ -626,6 +626,8 @@ document.onkeydown = (e) => {
|
|||||||
if (e.metaKey || e.ctrlKey || e.key === "/") eid("url-input-area").focus();
|
if (e.metaKey || e.ctrlKey || e.key === "/") eid("url-input-area").focus();
|
||||||
if (e.key === "Escape" || e.key === "Clear") clearInput();
|
if (e.key === "Escape" || e.key === "Clear") clearInput();
|
||||||
|
|
||||||
|
if (e.target === eid("url-input-area")) return;
|
||||||
|
|
||||||
// top buttons
|
// top buttons
|
||||||
if (e.key === "D") pasteClipboard();
|
if (e.key === "D") pasteClipboard();
|
||||||
if (e.key === "K") changeSwitcher('audioMode', 'false');
|
if (e.key === "K") changeSwitcher('audioMode', 'false');
|
||||||
|
Loading…
Reference in New Issue
Block a user