fix space handler when in input
Mwebclient/src/App.tsx
@@ -314,6 +314,10 @@ const App: Component = () => {
});
document.addEventListener("keydown", (e) => {
const activeElementTag = document.activeElement?.tagName.toLowerCase();
if (activeElementTag === "input") {
return;
}
if (e.key === " ") {
togglePlay();
e.preventDefault();