f0bm #75

Open
schrumpel wants to merge 49 commits from schrumpel/f0bm:f0bm into master
2 changed files with 2 additions and 2 deletions
Showing only changes of commit e822f118c6 - Show all commits

View File

@ -338,7 +338,7 @@ const flash = ({ type, msg }) => {
document.querySelector("svg#a_favo").addEventListener("click", toggleFavEvent); document.querySelector("svg#a_favo").addEventListener("click", toggleFavEvent);
document.addEventListener("keyup", e => { document.addEventListener("keyup", e => {
if(e.target.tagName === "INPUT") if(e.target.tagName === "INPUT" || e.target.tagName === "TEXTAREA")
return; return;
if(e.key === "p") if(e.key === "p")
toggleEvent(); toggleEvent();

View File

@ -30,7 +30,7 @@ const Cookie = {
})); }));
document.addEventListener("keydown", e => { document.addEventListener("keydown", e => {
if(e.target.tagName === "INPUT") if(e.target.tagName === "INPUT" && e.target.tagName === "TEXTAREA")
return; return;
const acttheme = Cookie.get('theme') ?? "w0bm"; const acttheme = Cookie.get('theme') ?? "w0bm";
const themes = [...themecontainer.querySelectorAll("li > a")].map(t => t.innerText.toLowerCase()); const themes = [...themecontainer.querySelectorAll("li > a")].map(t => t.innerText.toLowerCase());