[P2] Preserve native keyboard button activation in Reef Runner #22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Priority: P2
Type: bug
Source: project review requested 2026-10-26
Location:
src/ReefRunner.tsx:40Problem and evidence
The global handler prevents Space default behavior for focused buttons. Start dive, Resume, Sound and Back to simulator cannot be activated with Space; while playing Space can fire instead of activating the focused control.
Suggested correction
Exempt buttons, links, disclosures and editable elements from game shortcuts, following the simulator keyboard policy.
Acceptance criteria
Browser validation covers focused controls and body shortcuts during ready, paused and active states; pnpm verify passes.
Scope: maintenance of the educational simulator. Preserve historical R1 acceptance and operational-validation limits.
Fixed and pushed to main. Reef Runner ignores game shortcuts on native interactive/editable controls and ignores already-handled or modified shortcuts. Chromium checks verify Space on Start dive, Pause, Resume dive, Sound and Back to simulator, plus global Escape on the game background. All 138 tests and typecheck/build/offline/release checks pass. Browser regression: scripts/check-maintenance-browser.mjs.