Skip to content

Skip focus ordering geometry when resetting focus for a disabled widget - #94

Merged
trissim merged 3 commits into
mainfrom
perf/focus-reset-membership-20261007
Oct 7, 2026
Merged

trissim merged 3 commits into
mainfrom
perf/focus-reset-membership-20261007

Conversation

@trissim

@trissim trissim commented Oct 7, 2026 •

Copy link
Copy Markdown

Screen.focus_chain is split into _focus_candidates, which finds the focusable widgets, and _order_focus_candidates, which orders them using geometry. When focus is reset because the focused widget was disabled or hidden, the screen now uses candidates without ordering them. It does this only when focus_chain is not overridden. Two test files are updated.

@trissim
trissim marked this pull request as ready for review October 7, 2026 12:54
Copilot AI balanced review requested due to automatic review settings October 7, 2026 12:54
@trissim
trissim merged commit 8430ad2 into main Oct 7, 2026
0 of 22 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@trissim trissim changed the title Avoid unused focus ordering geometry during disabled-widget reset Skip focus ordering geometry when resetting focus for a disabled widget Oct 11, 2026
@trissim
trissim deleted the perf/focus-reset-membership-20261007 branch October 11, 2026 20:05
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.

2 participants