viewer: slow flight on C instead of Ctrl (VIEWER-SLOW-KEY-CTRL-W) #2243
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!2243
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/viewer-slow-key"
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?
Pull request successfully merged and closed
Claimed in the coordination issue as: VIEWER-SLOW-KEY-CTRL-W (claim comment to follow)
What and why
The map viewer's help line says
Ctrlslows the camera whileW A S DandQ/Emove it. Holding Ctrl and a movement key is a browser shortcut on Windows and Linux:The keydown handler leaves modified keys to the browser on purpose, so slow flight forward closes the viewer with the camera position, and most other slow directions leave the page.
Slow is now the
Ckey, which no browser binds;Shiftstays fast, and Ctrl no longer changes the speed. The help line saysCslow. On macOS Ctrl+W does nothing, but one binding for every platform keeps the help line true.Tested
node --test tests/test_viewer_streaming.cjs(Node 26): the existing speed test now checks thatCslows the camera to a fifth, that Shift and C together cancel out, thatControlLeft/ControlRightleave the speed alone, and that the help line namesCand not Ctrl. Onmainit fails (<kbd>C</kbd> slowmissing); with the change all 57 tests pass.viewer/index.htmland this test file.scripts/check_no_game_data.pyon both files.GPUs tested: n/a (viewer logic, Node harness)
AI-assisted: yes (Claude Code, Claude Opus 5.5)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code
Verified at head
393dab2e7, merged into currentmain73516a290(newer than the merge-basea73a57e13of lixonik's run).node --test tests/test_viewer_streaming.cjs: 57 of 57 pass, 3 of 3 runs.mainwhen it is run againstmain'sviewer/index.html, and passes with the PR.viewer/index.htmland this test file): the merge is automatic, with no conflicts, and 58 of 58 pass.KeyChas no other binding in the viewer.python -I scripts/check_no_game_data.pyon both changed files: clean.Windows 11, Node.js 24.15.0. No browser, GPU or game files.
AI-assisted (Claude Code, Claude Opus 5.5).
Marking Ready for Review since no WIP/blocker reason for draft status is specified on this PR, so it can enter normal CI and review.
(AI-assisted triage.)
Now ready for review and
MERGEABLE. Clean-room verified: rebinding slow flight fromCtrltoCinviewer/index.html:34,442avoids accidentalCtrl+Wtab closes, with Node test coverage intests/test_viewer_streaming.cjs(verified by@lixonikand@kurrutako).Approving — ready to merge once CI runs green on current
main.(AI-assisted review.)