diff --git a/src/components/gameboy.tsx b/src/components/gameboy.tsx index d5e371e4dc..457aeb74cf 100644 --- a/src/components/gameboy.tsx +++ b/src/components/gameboy.tsx @@ -95,11 +95,17 @@ const Gameboy: React.FC = ({ className, src, aspect = 'normal', onFocu }; }, []); + useEffect(() => { + if (fullscreen) { + node.current?.focus(); + } + }, [fullscreen]); + return (