Audit keyboard focus order
nvda_audit_focus_orderWalk an application's keyboard focus order to report accessibility issues using NVDA announcements, flagging unlabeled, silent, duplicate, stuck, or escaping focus.
Instructions
Walk through an application's keyboard focus order and report accessibility problems, using what NVDA actually announces.
Starting from the current focus, this presses key repeatedly and records each control and
what NVDA said. It stops when focus returns to the start, stops moving, or leaves the application.
It flags unlabeled buttons, links and fields; controls NVDA says nothing for;
duplicate names that users cannot tell apart; and focus that is stuck or escapes the app.
Focus is left wherever the walk ends.
Ask the user to focus the first control of the window to audit before calling this. Needs key presses to be allowed, like nvda_press_keys.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | The key that moves focus: 'tab' (default), 'shift+tab', 'downArrow'. | tab |
| max_steps | No | Press the key at most this many times. | |
| response_format | No | 'markdown' (default) is easier to read; 'json' keeps every field for further processing. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |