Skip to content

Fix game keyboard key capture during modal text input - #85

Open
jasandroidx wants to merge 1 commit into
ravenstackfrom
hall-chat-keyboard-capture-fix-843623365421475133
Open

jasandroidx wants to merge 1 commit into
ravenstackfrom
hall-chat-keyboard-capture-fix-843623365421475133

Conversation

@jasandroidx

Copy link
Copy Markdown
Owner

Fixed issue where Phaser's keyboard plugin captured game keys (W/A/S/D/E/Space/arrows) while typing in TalkSheet or other Keep modals. Added setKeyboardEnabled(on) on HallScene, synchronized it in keep-hall.tsx, and added a unit test.

Fixes #79


PR created automatically by Jules for task 843623365421475133 started by @jasandroidx

Adds setKeyboardEnabled method to HallScene in ui-v2/src/lib/hall/scene.ts
which toggles keyboard.enabled and invokes disableGlobalCapture/enableGlobalCapture.
Calls this method from KeepHall in keep-hall.tsx whenever talk, table, or
wardrobe modals open or close, allowing keys (W/A/S/D/E/Space/arrows) to type
normally in input fields. Adds unit test in talk-sheet-keyboard.test.ts.

Co-authored-by: jasandroidx <77057656+jasandroidx@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@vercel

vercel Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ravenstack-keep Ready Ready Preview Sep 22, 2026 11:28pm UTC

Request Review

jasandroidx added a commit that referenced this pull request Sep 23, 2026
…ignette contain, portrait-first dialogue thumbs, /oracle nav, keyboard-capture fix (#92)

- keep-hall boot hardens to exactly one Phaser.Game per mount and recenters the
  camera after the final resize settles.
- scene: small pixel name tags above character NPCs; clicking a far NPC walks
  the player to a walkable approach tile then opens dialogue; a wedged dest
  (prop/wall between click and player) clears after ~500ms so the player never
  grinds a boundary; boot camera snap via centerCameraOnPlayer(); new
  setKeyboardEnabled() switches Phaser keyboard while modals own focus.
- talk-sheet: talk scenes render object-contain over a blurred dimmed copy; the
  dialogue thumbnail prefers painted portraits, else the first actor-sheet sprite
  frame (CSS 400% crop on the 4x4 grids — never the raw grid), else a monogram.
- Oracle button now navigates to /oracle instead of a scene manifestation.
- Pause effect calls scene.setKeyboardEnabled (port of keep PR #85's keyboard
  capture fix; its .ts import rewrites and pnpm-lock are intentionally excluded).

No serverFn polling change: the hall polls (getPendingGates 30s, getHallState
90s) already pause on document.hidden; the 2s WebRTC ping is dormant and the 4s
Mechanic streamer is out of scope.

This branch was successfully deployed

1 active deployment
Preview — 59a207f5 Deployed Sep 22, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hall chat: game keyboard steals W/A/S/D/E/Space/arrows while typing

1 participant