[PR #152] [MERGED] Fix stuck keys when opening Options #2357

Closed
opened 2026-11-02 15:55:18 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/152
Author: @rdbtCVS
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @ludovic111

Base: main ← Head: fix/options-held-input


📝 Commits (1)

  • b6df5a9 Fix held keys getting stuck when opening Options

📊 Changes

3 files changed (+12 additions, -6 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+6 -4)
📝 crates/horizon-client/src/game/control.rs (+3 -2)
📝 crates/horizon-client/src/game/options.rs (+3 -0)

📄 Description

Holding a movement key, opening Options, releasing the key, and returning to the game could leave that key active. Clear held gameplay keys when Options opens and let releases reach the normal binding handler, including rebound keys and sneak/sprint mappings. Apply the same release translation to control-socket input.

Validation:

  • Release build: cargo build --locked --release -p horizon-client --bin horizon-client.
  • Formatting: cargo fmt --all -- --check.
  • Physical keyboard checks on an isolated Xvfb display: hold, click Options, release, and resume for W, A, Space, Shift, Ctrl, and R rebound to forward.
  • Confirmed the previous binary leaves W held after this sequence.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/152 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/14/2026 **Status:** ✅ Merged **Merged:** 10/14/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/options-held-input` --- ### 📝 Commits (1) - [`b6df5a9`](https://github.com/horizon-rust/horizon/commit/b6df5a91a93a5273e1a16bfedf7c6912e252d4fd) Fix held keys getting stuck when opening Options ### 📊 Changes **3 files changed** (+12 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+6 -4) 📝 `crates/horizon-client/src/game/control.rs` (+3 -2) 📝 `crates/horizon-client/src/game/options.rs` (+3 -0) </details> ### 📄 Description Holding a movement key, opening Options, releasing the key, and returning to the game could leave that key active. Clear held gameplay keys when Options opens and let releases reach the normal binding handler, including rebound keys and sneak/sprint mappings. Apply the same release translation to control-socket input. Validation: - Release build: `cargo build --locked --release -p horizon-client --bin horizon-client`. - Formatting: `cargo fmt --all -- --check`. - Physical keyboard checks on an isolated Xvfb display: hold, click Options, release, and resume for W, A, Space, Shift, Ctrl, and R rebound to forward. - Confirmed the previous binary leaves W held after this sequence. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:55:18 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#2357
No description provided.