Skip to content

Focus declared controls when revealed - #88

Merged
thunderballfists merged 2 commits into
mainfrom
fix/revealed-autofocus
Sep 30, 2026
Merged

thunderballfists merged 2 commits into
mainfrom
fix/revealed-autofocus

Conversation

@thunderballfists

Copy link
Copy Markdown
Owner

Closes #66.

Controls marked autofocus="true" now receive focus when a hidden control or ancestor is displayed after startup. Focus waits for layout and applies only to visible, enabled controls on the active screen. Existing startup, modal, and tab behavior remains covered; anonymous modal autofocus registrations are released on dismissal.

Regression tests exercise a runtime account list through initial hiding, repeated reveals, and keyboard selection, plus disabled controls, background modal protection, and anonymous modal cleanup. Docs describe the reveal behavior and current accent background focus cue.

Validation: Python 3.12 suite — 370 passed; visual suite — 6 passed; Pyflakes, build, lockfile, and diff checks passed. Independent review found no defects and confirmed dismissed anonymous controls were garbage-collected across repeated modal cycles.

@thunderballfists
thunderballfists merged commit 1c5ba96 into main Sep 30, 2026
10 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.

Focus does not move to widgets revealed after startup

1 participant