[PR #2903] [CLOSED] Input: Remote stack drops use physical Control #4682

Closed
opened 2026-11-03 05:07:10 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2903
Author: @elythepreciouscat
Created: 10/27/2026
Status: ❌ Closed

Base: main ← Head: fix/toggle-sprint-drop-stack


📝 Commits (2)

  • 809b2f6 Input: Remote stack drops use physical Control
  • 9b11396 Merge remote-tracking branch 'origin/main' into fix/toggle-sprint-drop-stack

📄 Description

What and why

Toggle sprint stores the sprint mapping as pressed in the logical key set. The remote Q handler used that set to decide whether to throw one item or the full stack, so enabling toggle sprint made every Q act as Ctrl+Q.

The handler now checks the physical Control keys, matching vanilla behavior and the existing local input path. Left and right Control both work.

Vanilla reference

net.minecraft.client.Minecraft.handleKeybinds uses the physical Control modifier (hasControlDown) for Ctrl+Q. The existing regression test covers sprint toggled on and both Control keys.

Self-check

  • python3 -m unittest discover -s tests — 336 passed
  • cargo fmt --all -- --check — pass
  • cargo clippy -p horizon-client --all-targets -- -D warnings — pass
  • cargo test -p horizon-client --bin horizon-client game::tests::stack_drop_requires_physical_ctrl_even_with_sprint_latched — pass

🔄 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/2903 **Author:** [@elythepreciouscat](https://github.com/elythepreciouscat) **Created:** 10/27/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/toggle-sprint-drop-stack` --- ### 📝 Commits (2) - [`809b2f6`](https://github.com/horizon-rust/horizon/commit/809b2f6fef77bac2e23cf281907a661bfbc253ee) Input: Remote stack drops use physical Control - [`9b11396`](https://github.com/horizon-rust/horizon/commit/9b1139626f0f12334a113f6474a1f6b73e198214) Merge remote-tracking branch 'origin/main' into fix/toggle-sprint-drop-stack ### 📄 Description ## What and why Toggle sprint stores the sprint mapping as pressed in the logical key set. The remote Q handler used that set to decide whether to throw one item or the full stack, so enabling toggle sprint made every Q act as Ctrl+Q. The handler now checks the physical Control keys, matching vanilla behavior and the existing local input path. Left and right Control both work. ## Vanilla reference `net.minecraft.client.Minecraft.handleKeybinds` uses the physical Control modifier (`hasControlDown`) for Ctrl+Q. The existing regression test covers sprint toggled on and both Control keys. ## Self-check - `python3 -m unittest discover -s tests` — 336 passed - `cargo fmt --all -- --check` — pass - `cargo clippy -p horizon-client --all-targets -- -D warnings` — pass - `cargo test -p horizon-client --bin horizon-client game::tests::stack_drop_requires_physical_ctrl_even_with_sprint_latched` — pass --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:07:10 +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#4682
No description provided.