diff --git a/public/s/js/admin.js b/public/s/js/admin.js index 6e1c9ff..863f9e0 100644 --- a/public/s/js/admin.js +++ b/public/s/js/admin.js @@ -338,7 +338,7 @@ const flash = ({ type, msg }) => { document.querySelector("svg#a_favo").addEventListener("click", toggleFavEvent); document.addEventListener("keyup", e => { - if(e.target.tagName === "INPUT") + if(e.target.tagName === "INPUT" || e.target.tagName === "TEXTAREA") return; if(e.key === "p") toggleEvent(); diff --git a/public/s/js/theme.js b/public/s/js/theme.js index 4ebd6bb..d1d6e6f 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") + 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());