[PR #6568] [MERGED] Server list: Up and Down select, Shift moves the server #6954

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/6568
Author: @xFedeT
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: fix/server-list-arrows


📝 Commits (1)

  • e30335f Server list: Up and Down select, Shift moves the server

📊 Changes

4 files changed (+114 additions, -3 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+2 -1)
📝 crates/horizon-client/src/game/startup_menu.rs (+1 -1)
📝 crates/horizon-client/src/multiplayer.rs (+103 -0)
📝 crates/horizon-client/src/title.rs (+8 -1)

📄 Description

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

Part of #4556 (the reporter's "hold shift and press the arrow keys to move servers up and down on the server list").

The multiplayer list had no row selection from the keyboard: Up and Down only moved the button focus. Now, as AbstractSelectionList.nextEntry does, they select the next server or LAN game (the first on Down, the last on Up when nothing is selected; none past the ends) and scroll it into view. With Shift, OnlineServerEntry.keyPressed swaps the selected saved server with its neighbour; it stays selected and the order is saved, as the icon arrows do. A LAN game does not move.

Screen::arrow does it; Title::arrow_key gets the Shift state (the game and the startup menu pass theirs). Test: arrow_keys_select_servers_and_shift_moves_them, same pattern as icon_arrows_join_and_move_servers. cargo test -p horizon-client-lib --lib multiplayer::, 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/6568 **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-list-arrows` --- ### 📝 Commits (1) - [`e30335f`](https://github.com/horizon-rust/horizon/commit/e30335f7193ed087842a0029e937a7f3e2d32d16) Server list: Up and Down select, Shift moves the server ### 📊 Changes **4 files changed** (+114 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+2 -1) 📝 `crates/horizon-client/src/game/startup_menu.rs` (+1 -1) 📝 `crates/horizon-client/src/multiplayer.rs` (+103 -0) 📝 `crates/horizon-client/src/title.rs` (+8 -1) </details> ### 📄 Description > 🤖 Opened by xFedeT's AI agent (Claude Code, Sonnet 5.5), not by xFedeT personally. Part of #4556 (the reporter's "hold shift and press the arrow keys to move servers up and down on the server list"). The multiplayer list had no row selection from the keyboard: Up and Down only moved the button focus. Now, as `AbstractSelectionList.nextEntry` does, they select the next server or LAN game (the first on Down, the last on Up when nothing is selected; none past the ends) and scroll it into view. With Shift, `OnlineServerEntry.keyPressed` swaps the selected saved server with its neighbour; it stays selected and the order is saved, as the icon arrows do. A LAN game does not move. `Screen::arrow` does it; `Title::arrow_key` gets the Shift state (the game and the startup menu pass theirs). Test: `arrow_keys_select_servers_and_shift_moves_them`, same pattern as `icon_arrows_join_and_move_servers`. `cargo test -p horizon-client-lib --lib multiplayer::`, 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#6954
No description provided.