[PR #510] [MERGED] Handle fullscreen shortcut across menus and text fields #2610

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/510
Author: @Online5277
Created: 10/16/2026
Status: ✅ Merged
Merged: 10/16/2026
Merged by: @ludovic111

Base: main ← Head: fix/fullscreen-all-screens


📝 Commits (1)

  • 18dc7e7 Handle fullscreen shortcut before screen input

📊 Changes

1 file changed (+14 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+14 -0)

📄 Description

F11 currently reaches fullscreen handling only after screen-specific input. The title screen, Options, chat, and text editors consume it first.

Handle the configured fullscreen key before screen and debug input, using the existing toggle that saves and applies the Fullscreen option. Ignore held-key repeats and preserve key capture while rebinding in Controls.

Fixes #497.

Validation:

  • cargo fmt --all -- --check and git diff --check passed.
  • cargo test --profile fast -p horizon-client --lib --bin horizon-client fullscreen: both existing window-state tests passed and the client binary compiled.
  • cargo test --profile fast -p horizon-client --lib keybinds::tests: both existing keybinding tests passed.
  • cargo clippy --profile fast -p horizon-client --all-targets -- -D warnings passed.
  • python3 tools/check_public_tree.py passed.

Draft pending an in-game check: toggle on the title screen, world selection, Options, chat, and a text editor; check the Fullscreen setting and persistence after restart. Also hold the shortcut to check repeat suppression, then rebind it in Controls and check the new key across menus. Existing tests cover window-state synchronization and rebinding; they do not exercise screen input routing, which has no inexpensive isolated Game fixture. No client window was launched.


🔄 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/510 **Author:** [@Online5277](https://github.com/Online5277) **Created:** 10/16/2026 **Status:** ✅ Merged **Merged:** 10/16/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/fullscreen-all-screens` --- ### 📝 Commits (1) - [`18dc7e7`](https://github.com/horizon-rust/horizon/commit/18dc7e7d8a36c49c15e52737cbcd4b4541411b1a) Handle fullscreen shortcut before screen input ### 📊 Changes **1 file changed** (+14 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+14 -0) </details> ### 📄 Description F11 currently reaches fullscreen handling only after screen-specific input. The title screen, Options, chat, and text editors consume it first. Handle the configured fullscreen key before screen and debug input, using the existing toggle that saves and applies the Fullscreen option. Ignore held-key repeats and preserve key capture while rebinding in Controls. Fixes #497. Validation: - `cargo fmt --all -- --check` and `git diff --check` passed. - `cargo test --profile fast -p horizon-client --lib --bin horizon-client fullscreen`: both existing window-state tests passed and the client binary compiled. - `cargo test --profile fast -p horizon-client --lib keybinds::tests`: both existing keybinding tests passed. - `cargo clippy --profile fast -p horizon-client --all-targets -- -D warnings` passed. - `python3 tools/check_public_tree.py` passed. Draft pending an in-game check: toggle on the title screen, world selection, Options, chat, and a text editor; check the Fullscreen setting and persistence after restart. Also hold the shortcut to check repeat suppression, then rebind it in Controls and check the new key across menus. Existing tests cover window-state synchronization and rebinding; they do not exercise screen input routing, which has no inexpensive isolated Game fixture. No client window was launched. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:57:35 +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#2610
No description provided.