[PR #7565] [MERGED] port_map: client2-011's list focus rows are ports #7675

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-client2-011


📝 Commits (1)

  • 70b60c4 port_map: client2-011's list focus rows are ports

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 tools/port_map/client2-011.tsv (+2 -2)

📄 Description

The rows

ScrollableLayout.Container.getBorderForArrowNavigation and ScrollableLayout.Container.setFocused in client2-011.tsv were marked missing, both with the reason "Horizon lists have no keyboard focus". That stopped being true when the options screens took keyboard navigation.

OptionsUi::key collects the page's focusables (the search box, buttons, sliders, language rows), and:

  • Tab and Shift+Tab move through them in order;
  • the left and right arrows step to the neighbour in that direction (gamepad::focus_step_rect), off the list's edge too, which is what the border lookup exists to answer;
  • up and down do the same with focus_step_strict, then focus_step_vague when the strict step finds nothing, or scroll the list when the focused row is already at the edge.

A widget that takes the focus and is a list row is scrolled into the visible area, four pixels past the edge it crossed, before the list clamps — setFocused's scrolling.

Proven

Both rows now name crates/horizon-client-render/src/options_ui.rs::OptionsUi::key: the three focus blocks (// 1. Tab / Shift+Tab navigation, // 2. Left / Right Arrow keys, // 3. Up / Down Arrow keys) step the focus, and the if *in_list block in each does the scroll.

Not proven

The ledger rows only: no behaviour changes here, so no test comes with it.


🔄 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/7565 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/ledger-client2-011` --- ### 📝 Commits (1) - [`70b60c4`](https://github.com/horizon-rust/horizon/commit/70b60c488d27be240fdda645fac5b3f464fe828c) port_map: client2-011's list focus rows are ports ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/client2-011.tsv` (+2 -2) </details> ### 📄 Description ## The rows `ScrollableLayout.Container.getBorderForArrowNavigation` and `ScrollableLayout.Container.setFocused` in `client2-011.tsv` were marked missing, both with the reason "Horizon lists have no keyboard focus". That stopped being true when the options screens took keyboard navigation. `OptionsUi::key` collects the page's focusables (the search box, buttons, sliders, language rows), and: - Tab and Shift+Tab move through them in order; - the left and right arrows step to the neighbour in that direction (`gamepad::focus_step_rect`), off the list's edge too, which is what the border lookup exists to answer; - up and down do the same with `focus_step_strict`, then `focus_step_vague` when the strict step finds nothing, or scroll the list when the focused row is already at the edge. A widget that takes the focus and is a list row is scrolled into the visible area, four pixels past the edge it crossed, before the list clamps — `setFocused`'s scrolling. ## Proven Both rows now name `crates/horizon-client-render/src/options_ui.rs::OptionsUi::key`: the three focus blocks (`// 1. Tab / Shift+Tab navigation`, `// 2. Left / Right Arrow keys`, `// 3. Up / Down Arrow keys`) step the focus, and the `if *in_list` block in each does the scroll. ## Not proven The ledger rows only: no behaviour changes here, so no test comes with it. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 07:21:49 +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#7675
No description provided.