Skip to content

fix: give the focus back to the row that opened a picker - #196

Merged
lippdev merged 1 commit into
mainfrom
fix/picker-keeps-focus
Nov 1, 2026
Merged

lippdev merged 1 commit into
mainfrom
fix/picker-keeps-focus

Conversation

@lippdev

@lippdev lippdev commented Nov 1, 2026

Copy link
Copy Markdown
Owner

What

The owner found that after picking an option in a list on the console interface (the resolution, say), the focus jumped back to the start of the page instead of staying on the row. Closing the picker went through FocusDefault(): on System that is the category in the rail, on Session the first screen card, so with a pad you had to walk down to the next setting again.

  • When the picker opens, the row that has the focus (the one that opened it) is remembered.
  • When it closes, with a value picked or with B, that row gets the focus back (BackToPickerOpener), as long as it is still on screen and enabled.
  • If a choice rebuilt the page under it, the previous fallbacks still apply (the last System row, then the default spot).

Verified on this PC (debug build, keyboard, owner's installed app closed)

  • System → Game screen: down to How to turn the other screens off, Enter, pick Black curtain → focus stays on How to turn the other screens off. Resolution and refresh rate, Enter, Esc → back on it.
  • Session: Audio output and Resolution and refresh rate, Enter, Esc → back on each one (before: the first screen card).
  • dotnet test: 675 passing.

🤖 Generated with Claude Code

Closing a picker (a value picked or B) sent the focus to the page's
default spot: the category on System, the first screen on Session. The
row that opened it is remembered when it opens and gets the focus back;
if a choice rebuilt the page under it, the old fallbacks still apply.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes: Reviewed the picker-opener focus capture/restoration and its fallback behavior, along with the accompanying release notes and manual test checklist.

  • Picker focus restoration: ConsoleHomeView remembers the focused control when opening a picker and restores it on close when the control is still eligible, otherwise using existing focus fallbacks.
  • Documentation: Added matching Portuguese and English changelog entries and manual checks for controller and mouse interaction.

Pullfrog  | View workflow run | Using gpt-6-luna | 𝕏

@lippdev
lippdev merged commit f8ea8da into main Nov 1, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant