mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-17 22:00:00 +00:00
front: ignore shift+key combinations if url bar is focused
merge pull request #288 from dumbmoron/input-ignore-kb-shortcuts
This commit is contained in:
commit
1360bf4f08
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue