[PR #889] [MERGED] Fix F3 debug overlay toggling in the main menu #2893

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

📋 Pull Request Information

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

Base: main ← Head: fix/811-main-menu-debug-overlay


📝 Commits (1)

  • 3787397 Fix F3 debug overlay toggling in the main menu

📊 Changes

2 files changed (+3 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+0 -1)
📝 crates/horizon-client/src/game/debug_keys.rs (+3 -0)

📄 Description

What and why

Fixes #811.

F3 keyboard events were excluded whenever the title menu was open, although the debug overlay already renders over that menu. Route these events through the existing debug handler and report the title menu as an open screen so it does not receive gameplay handling.

Vanilla reference

Followed the pinned 26.3 KeyboardHandler.keyPress: the debug overlay toggle is handled after screen input and is not conditional on a loaded world or the absence of a screen. Inspected with tools/rea_vanilla.py.

Self-check

  • GitHub verify passed on 378739703b2a078c9b2042e8ea14de48748b884a (formatting, workspace clippy and tests, offline tooling and public-tree checks).
  • Native client built successfully.
  • On an isolated X11 virtual display, reproduced the original bug, then verified the patched client stays closed on F3 press, opens on release, and closes on the next tap. Status remained title throughout.
  • Inspected a captured frame showing debug information over the title menu.
  • Full python3 tools/pr_ready.py --base origin/main is running; results will be added when complete.

🔄 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/889 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/18/2026 **Status:** ✅ Merged **Merged:** 10/18/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/811-main-menu-debug-overlay` --- ### 📝 Commits (1) - [`3787397`](https://github.com/horizon-rust/horizon/commit/378739703b2a078c9b2042e8ea14de48748b884a) Fix F3 debug overlay toggling in the main menu ### 📊 Changes **2 files changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+0 -1) 📝 `crates/horizon-client/src/game/debug_keys.rs` (+3 -0) </details> ### 📄 Description ## What and why Fixes #811. F3 keyboard events were excluded whenever the title menu was open, although the debug overlay already renders over that menu. Route these events through the existing debug handler and report the title menu as an open screen so it does not receive gameplay handling. ## Vanilla reference Followed the pinned 26.3 `KeyboardHandler.keyPress`: the debug overlay toggle is handled after screen input and is not conditional on a loaded world or the absence of a screen. Inspected with `tools/rea_vanilla.py`. ## Self-check - GitHub `verify` passed on `378739703b2a078c9b2042e8ea14de48748b884a` (formatting, workspace clippy and tests, offline tooling and public-tree checks). - Native client built successfully. - On an isolated X11 virtual display, reproduced the original bug, then verified the patched client stays closed on F3 press, opens on release, and closes on the next tap. Status remained `title` throughout. - Inspected a captured frame showing debug information over the title menu. - Full `python3 tools/pr_ready.py --base origin/main` is running; results will be added when complete. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:59:54 +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#2893
No description provided.