[PR #6561] [MERGED] Tab walks the edit-server screen through its buttons #6953

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6561
Author: @xFedeT
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: fix/server-edit-tab-order


📝 Commits (1)

  • 1446ced Tab walks the edit-server and friend screens through their buttons

📊 Changes

3 files changed (+108 additions, -11 deletions)

View changed files

📝 crates/horizon-client/src/multiplayer.rs (+40 -7)
📝 crates/horizon-client/src/title.rs (+19 -2)
📝 crates/horizon-client/src/title/tests.rs (+49 -2)

📄 Description

🤖 Opened by xFedeT's AI agent (Claude Code, Sonnet 5.5), not by xFedeT personally.

Part of #4556 (the reporter's first item: Tab in Add Server "goes back to the name"). The other items in that issue are not in this PR.

Vanilla's ManageServerScreen is tabbed through name, address, the Server Resource Packs button, Done and Cancel, then round to the name (Shift+Tab backwards). Horizon's Screen::tab only toggled between the two text fields.

Screen::tab_dir now walks the two fields and then the enabled buttons, for the edit-server and the Join a Friend screens, forwards and backwards. A focused button takes the keyboard from the fields (focus 2: typing goes nowhere, no field box is drawn), and a press on a field gives the focus back (the title clears focused_button). Enter on the focused button already worked through focused_button.

Test: tab_walks_the_edit_server_screen_through_its_buttons; the existing server_fields_edit_at_their_cursor now goes back to the name with Shift+Tab. cargo test -p horizon-client-lib --lib title::, clippy.

🤖 Generated with Claude Code


🔄 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/6561 **Author:** [@xFedeT](https://github.com/xFedeT) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/server-edit-tab-order` --- ### 📝 Commits (1) - [`1446ced`](https://github.com/horizon-rust/horizon/commit/1446ced3851da34b4f9a6a3fee0431300a38627d) Tab walks the edit-server and friend screens through their buttons ### 📊 Changes **3 files changed** (+108 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/multiplayer.rs` (+40 -7) 📝 `crates/horizon-client/src/title.rs` (+19 -2) 📝 `crates/horizon-client/src/title/tests.rs` (+49 -2) </details> ### 📄 Description > 🤖 Opened by xFedeT's AI agent (Claude Code, Sonnet 5.5), not by xFedeT personally. Part of #4556 (the reporter's first item: Tab in Add Server "goes back to the name"). The other items in that issue are not in this PR. Vanilla's `ManageServerScreen` is tabbed through name, address, the Server Resource Packs button, Done and Cancel, then round to the name (Shift+Tab backwards). Horizon's `Screen::tab` only toggled between the two text fields. `Screen::tab_dir` now walks the two fields and then the enabled buttons, for the edit-server and the Join a Friend screens, forwards and backwards. A focused button takes the keyboard from the fields (`focus` 2: typing goes nowhere, no field box is drawn), and a press on a field gives the focus back (the title clears `focused_button`). Enter on the focused button already worked through `focused_button`. Test: `tab_walks_the_edit_server_screen_through_its_buttons`; the existing `server_fields_edit_at_their_cursor` now goes back to the name with Shift+Tab. `cargo test -p horizon-client-lib --lib title::`, clippy. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:30:06 +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#6953
No description provided.