F1 menu: a held Up or Down moves on by itself #2351
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2351
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2351"
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?
@tongelberkay on GitHub · 2026-11-29 12:17 UTC · original
tongelberkay:fix/f1-menu-key-repeat→main· +833 −825 · 32 files · 11 commits · openWhat it changes
The F1 menu's key thread (
watch_keysincrates/victory-gpu/src/host/menu.rs) counted a key only when it went down, so holding Up or Down moved one row and stopped: going through the list took one press per row.Up and Down now repeat while held, as a keyboard's own repeat does: after 400 ms, one more row every 80 ms. The timing is a small function of its own (
presses), with a unit test.maindoes at the start and for clicks is kept: a key already held when the thread starts, and a click while the menu is closed, send nothing until let go.How it was tested
cargo test -p victory-gpu --lib host::menu: 29 passed, including the newheld_up_and_down_repeat.cargo clippy -p victory-gpu -- -D warningsstops atshadow.rs(rangedis never used) onmain(84bd61e2) as well; nothing inmenu.rs.Checked for overlap
mainafter #2225's mouse buttons landed inwatch_keys; both are kept.🤖 Generated with Claude Code
e99f595d84to04b4ccef1eView command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.