Skip to content

best way to save what you love

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

dumbmoron798d0d72425d
diff --git a/src/front/cobalt.js b/src/front/cobalt.js
index b3d3b7a8..31196215 100644
--- a/src/front/cobalt.js
+++ b/src/front/cobalt.js
@@ -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');