viewer: slow flight on C instead of Ctrl (VIEWER-SLOW-KEY-CTRL-W) #2243
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2243"
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?
Imported from ubiquitarianism/leonida. Originally posted by syfyra on 2026-11-26T10:11:45Z.
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
Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-26T11:08:23Z.
Review: COMMENTED
Windows 11: 57/57 viewer Node tests passed, including C slow flight, Shift plus C, both Ctrl keys leaving speed unchanged, and the help binding. The keyboard checks use the viewer test harness. A physical browser input session was outside this run. No findings.
AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by kurrutako on 2026-11-26T14:18:16Z.
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).
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T12:01:57Z.
Review: COMMENTED
Draft review against current
main: switching slow flight fromCtrltoC(KeyC) inviewer/index.html:34,442to avoid browser shortcuts looks clean and clean-room verified. Still Draft with no CI run yet — please mark Ready for Review so CI runs green.(AI-assisted review.)
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T12:27:44Z.
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.)
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T13:04:24Z.
Review: APPROVED
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.)