fix maybe idk

This commit is contained in:
Cloudburst 2022-09-21 18:13:15 +02:00
parent 80811c0995
commit d9a1f5328e

View file

@ -22,7 +22,6 @@ function CompatBtn({autoFocus, href, onClick, group, target, children, className
useEffect(() => {
if (isBrowser) {
window.addEventListener("keyup", (ev) => {
if (!focused) return;
if (document.activeElement !== ref.current) return;
if (ev.key === "Enter" || ev.key === " ") {
ref.current?.click()