diff --git a/public/s/js/theme.js b/public/s/js/theme.js index d1d6e6f..7cd37b9 100644 --- a/public/s/js/theme.js +++ b/public/s/js/theme.js @@ -30,7 +30,7 @@ const Cookie = { })); document.addEventListener("keydown", e => { - if(e.target.tagName === "INPUT" && e.target.tagName === "TEXTAREA") + if(e.target.tagName === "INPUT" || e.target.tagName === "TEXTAREA") return; const acttheme = Cookie.get('theme') ?? "w0bm"; const themes = [...themecontainer.querySelectorAll("li > a")].map(t => t.innerText.toLowerCase());