mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 02:22:44 +01:00
Arrow keys (and the D-pad, which useGamepad turns into arrow keys) only moved focus inside a useGridNav/useWrapGridNav region, so from the game page's action ribbon up/down had no target and the top bar was unreachable by pad. Add useSpatialNav, installed by AppLayout: for arrow keys no grid or widget claimed, it focuses the nearest control in that direction and scrolls it into view when it is off-screen or under the fixed bars. The grids now listen on document so they run first and leave edge moves to it. FOCUSABLE_SELECTOR moves to a shared util. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>