Conversation
The accessibility recorder polls focus every ~250ms, missing fast transitions and reacting late. wait_for_focus_change blocks on the native AddFocusChangedEventHandler and returns the moment focus moves - zero-latency, miss-free, the accessibility-tree analogue of wait_for_window. The real event handler is registered/unregistered under a lock on the calling thread (COMObject + queue). Extends the backend ABC + Windows UIA backend via the fake-backend seam.
Add ax_events: reactive UIA focus-change wait
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 23 |
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Release: native-UIA depth, part 3 (v202) — lane complete
Final piece of the ROUND-15 native Windows UI (UIA) depth lane.
ax_events(v202, Add ax_events: reactive UIA focus-change wait #424) —wait_for_focus_change: block on the nativeAddFocusChangedEventHandlerand return the moment focus moves — the zero-latency, miss-free reactive wait (vs the ~250 ms polling recorder), registered/unregistered under a lock on the calling thread.Native-UIA depth lane complete (v195–v202, 8 features)
virtualized(realize off-screen items) ·ax_props(rich properties) ·table_pattern(headers + cell addressing) ·transform_window(move/resize + window state) ·legacy_accessible(MSAA bridge) · advancedax_text(find/select/attributes) ·selection_view(selection + views) ·ax_events(reactive focus wait).All extend the accessibility backend ABC + Windows UIA backend through the same injectable fake-backend seam (headless-testable; real UIA gated to Windows). EN/Zh docs + WHATS_NEW included.