Repository navigation
Fix game keyboard key capture during modal text input - #85
jasandroidx wants to merge 1 commit into
Conversation
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>
|
👋 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 New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…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.
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)onHallScene, synchronized it inkeep-hall.tsx, and added a unit test.Fixes #79
PR created automatically by Jules for task 843623365421475133 started by @jasandroidx