mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:40:50 +01:00
[PR #2243] viewer: slow flight on C instead of Ctrl (VIEWER-SLOW-KEY-CTRL-W) #2246
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2246
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2243
Author: @syfyra
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:fix/viewer-slow-key📝 Commits (1)
393dab2viewer: slow flight on C instead of Ctrl (VIEWER-SLOW-KEY-CTRL-W)📊 Changes
2 files changed (+14 additions, -6 deletions)
View changed files
📝
tests/test_viewer_streaming.cjs(+9 -3)📝
viewer/index.html(+5 -3)📄 Description
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.