js in die hose kaka

This commit is contained in:
x 2025-04-07 09:01:07 +02:00
parent b964a71c7a
commit e822f118c6
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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());