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(() => { useEffect(() => {
if (isBrowser) { if (isBrowser) {
window.addEventListener("keyup", (ev) => { window.addEventListener("keyup", (ev) => {
if (!focused) return;
if (document.activeElement !== ref.current) return; if (document.activeElement !== ref.current) return;
if (ev.key === "Enter" || ev.key === " ") { if (ev.key === "Enter" || ev.key === " ") {
ref.current?.click() ref.current?.click()