Repository navigation
fix(outbreak): crouch on Z instead of Ctrl, M opens the map - #419
Merged
Merged
Conversation
… speaker button Playtest Oct 21: "I always accidentally end up hitting Ctrl W in these games, I'm trying to crouch and move forward" (1:19:28, after "I just closed my game"), and "the map doesn't pop up if I press it. It mutes" (1:43:52). - Crouch holds Z (beside left Shift, free on foot). Browsers never hand Ctrl/Cmd+W to the page, so during a night closing the tab asks first (beforeunload; not under automation). - M opens and closes the map (N still does); mute is on the speaker button. The Mute row shows its M cap only with Today's binding. - Prompts follow the bindings: training crouch hint, map legend, Way Out "pinned" caps, Lab station notes. - Lab > Controls > Crouch key / Map key keep Today one setting away; docs/controls.md gains a Ctrl and Cmd+W rule.
…ons); map legend key follows the setting
kitlangton
force-pushed
the
outbreak-controls-crouch-map
branch
from
October 22, 2026 10:27
12a67de to
5224cd6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What it does. Two Oct 21 playtest complaints. "I just closed my game": crouch on Ctrl plus W closed the tab mid-night. And "the map doesn't pop up… It mutes": M muted the game instead of opening the map.
How it works.
controls/settings.tsmaps the settings to physical codes (crouchCodes,mapCodes,muteOnM). The controller, training hint, map legend, Way Out prompt and volume menu all read them. The Ctrl-shortcut suppression only runs with Today's Ctrl crouch.beforeunloadlistener that checks the latest frame's state when the tab closes. It asks in a co-op room, or more than 30 s into a solo run. It doesn't ask with any menu open (pause included, so Restart, New town and Play seed navigate freely), after the run is over, while you're dead, or under automation. The 30 s restart with each new session.Risk. Client input and HUD only. If the prompt is wrong, you'd see it appear at a menu or not appear mid-night. Players used to Ctrl crouch or M mute get new keys; Today's bindings are one setting away.
Proof. Map legend with M as the close key:
check-cycles,bunx tsc --noEmitand the server tsconfig: pass.bun teston control-keys, input-release, map, death, coop-death-parity, feature-registry and flashlight-inventory: 57 pass.bun run build && bun ../../scripts/smoke.mjs: production smoke passed (Metal).scripts/controls-proof.tsrun with real keys: Z crouches, Ctrl doesn't, M opens the map and doesn't mute, N still opens it.