Typed characters are not spoken in a web combobox once aria-activedescendant references an option ("Only in edit controls" mode)

Open
#20,960 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
accessibility

Research direction

Start by opening the attached repro.html in Edge or Chrome with NVDA's “Speak typed characters” set to “Only in edit controls,” then compare fields A and B as described. Trace how NVDA decides whether typed-character echo applies when aria-activedescendant changes the reported focus. Done when each character typed in field A is spoken, as it is in field B, without changing keyboard focus.

Written by the indexing model from the issue text.

Description

bug p4 triaged
Brief summary

With "Speak typed characters" set to "Only in edit controls" (the default since 2025.1), NVDA stops speaking typed characters in an editable web combobox as soon as the input's aria-activedescendant references an option in its popup. Keyboard focus never leaves the text input and every character is inserted into it, but only the first character typed is spoken. Setting "Speak typed characters" to "Always" restores the echo.

ARIA 1.2 requires this markup for a combobox that automatically selects a suggestion while the user types, so authors who follow the specification lose the echo under NVDA's default settings.

Steps to reproduce
  1. Use a default NVDA configuration, or confirm that Settings, Keyboard, "Speak typed characters" is "Only in edit controls".
  2. Open https://jsfiddle.net/4t70fb9h/1/ in Edge or Chrome and move to the result pane. The same page is attached as repro.html, which can be opened directly instead.
  3. Tab to field A ("Active descendant follows the first match while typing").
  4. Type b, a, n, pausing between keys.
  5. Press NVDA+Tab to report the focus.
  6. Tab to field B ("Control: active descendant set only by arrow keys") and repeat steps 4 and 5.

Both fields are an <input type="text" role="combobox" aria-autocomplete="list"> that filters a role="listbox" as you type. The only difference is that field A sets aria-activedescendant to the first matching option on every input event, and field B leaves it empty until an arrow key is pressed. The page has no dependencies.

repro.html

Actual behavior

Field A, typing "bana" by hand (from the attached log):

b:  B. A. Active descendant follows the first match while typing, list. Banana, 1 of 3
a:  Banana, 1 of 1
n:  Banana, 1 of 1
a:  Banana, 1 of 1

Only "b" is spoken as a typed character. The log shows all four key presses arriving. The gaps between them were 0.45, 1.45 and 0.45 seconds.

Field B, typing "banana" by hand (same log):

b:  B. expanded
a:  A
n:  N
a:  A
n:  N
a:  A

The same sequence with an automated harness, which also pressed NVDA+Tab after typing:

Field A:  Banana, list item, focused, selected, 1 of 1
Field B:  Fruit, combo box, focused, expanded, has auto complete, editable, ban

So in field A NVDA reports the option as the focus although DOM focus is on the input.

The "Banana, 1 of 1" on each key in field A is there only because this page rebuilds its list, so the option is a new element each time. When the page keeps the same option element, which is what component libraries usually do, NVDA says nothing at all after the first key (harness):

b:  b. Fruit, list. Banana, 1 of 3
a:  (silence)
n:  (silence)

Field A in one session, cycling the mode with NVDA+2 (harness):

Only in edit controls:  b. Fruit, list. Banana, 1 of 3 / Banana, 1 of 1 / Banana, 1 of 1
Always:                 b. Fruit, list. Banana, 1 of 3 / a. Banana, 1 of 1 / n. Banana, 1 of 1
Off:                    Fruit, list. Banana, 1 of 3 / Banana, 1 of 1 / Banana, 1 of 1

At typing speed, typing "banan" into field A (harness):

about 20 ms between keys:   b. a. n. a. n (then the list and option)
about 90 ms between keys:   b. Fruit, list. Banana, 1 of 3. Banana, 1 of 1 (four times)
about 180 ms between keys:  the same
about 340 ms between keys:  the same

So only a burst that finishes before the focus change reaches NVDA is echoed in full. At any ordinary typing speed the user hears the first character and no more. Field B echoed all five characters at all four speeds.

About the harness lines: they were recorded with Guidepup driving NVDA 2026.2 and Playwright driving Edge, on a one-field copy of the same markup and script where the field is labelled "Fruit". Each line is the text NVDA sent to speech for that key, with phrases joined by periods. Key gaps are the measured keydown spacing. Each paced line is one run.

Expected behavior

In "Only in edit controls" mode, NVDA speaks each typed character in field A, as it does in field B, because the element receiving the keystrokes is an editable text input. An active descendant does not move keyboard focus, so it should not change whether typing counts as happening in an edit control.

b:  b. Fruit, list. Banana, 1 of 3
a:  a
n:  n
NVDA logs, crash dumps and other attachments

Debug log attached. It covers typing in field A, typing in field B, and NVDA+F1 in field A while "bana" was in the field and the option was the active descendant. speakTypedCharacters is 1 (Only in edit controls) in the config it prints.

The typing in field A, from that log:

IO - inputCore.InputManager.executeGesture (12:28:15.200) - winInputHook (5460):
Input: kb(desktop):b
IO - speech.speech.speak (12:28:15.226) - MainThread (5584):
Speaking [PitchCommand(offset=30), CharacterModeCommand(True), LangChangeCommand ('en_US'), 'B', PitchCommand(), EndUtteranceCommand(), CharacterModeCommand(False)]
IO - speech.speech.speak (12:28:15.298) - MainThread (5584):
Speaking [LangChangeCommand ('en_US'), 'A. Active descendant follows the first match while typing', 'list', CancellableSpeech (still valid)]
IO - speech.speech.speak (12:28:15.302) - MainThread (5584):
Speaking [LangChangeCommand ('en_US'), 'Banana', '1 of 3', CancellableSpeech (still valid)]
IO - inputCore.InputManager.executeGesture (12:28:15.645) - winInputHook (5460):
Input: kb(desktop):a
IO - speech.speech.speak (12:28:15.751) - MainThread (5584):
Speaking [LangChangeCommand ('en_US'), 'Banana', '1 of 1', CancellableSpeech (still valid)]
IO - inputCore.InputManager.executeGesture (12:28:17.096) - winInputHook (5460):
Input: kb(desktop):n
IO - speech.speech.speak (12:28:17.213) - MainThread (5584):
Speaking [LangChangeCommand ('en_US'), 'Banana', '1 of 1', CancellableSpeech (still valid)]

(Between each key and its speech the full log also has accRole failed and could not get IAccessible2 states warnings. I take those to be NVDA querying the previous option element, which the page has just replaced. They are left out here for length.)

Developer info for the navigator object, taken in field A:

name: 'Banana'
role: LISTITEM
states: SELECTABLE, FOCUSABLE, FOCUSED, SELECTED
isFocusable: True
hasFocus: True
Python object: <NVDAObjects.IAccessible.ia2Web.Ia2Web object at 0x000001FE82170DD0>
value: ''
TextInfo: <class 'NVDAObjects.IAccessible.IA2TextTextInfo'>
appModule: AppModule(appModuleHandler, appName='msedge', processID=12544)
appModule.productName: 'Microsoft Edge'
appModule.productVersion: '154.0.4258.53'
appModule.appArchitecture: 'ARM64'
windowClassName: 'Chrome_RenderWidgetHostHWND'
IAccessible accName: 'Banana'
IAccessible accRole: ROLE_SYSTEM_LISTITEM
IAccessible accState: STATE_SYSTEM_SELECTED, STATE_SYSTEM_FOCUSED, STATE_SYSTEM_FOCUSABLE, STATE_SYSTEM_SELECTABLE, STATE_SYSTEM_VALID (3145734)
IAccessible2 role: ROLE_SYSTEM_LISTITEM
IAccessible2 states: IA2_STATE_OPAQUE (1024)
IAccessible2 attributes: 'display:list-item;tag:li;xml-roles:option;setsize:1;posinset:1;name-from:contents;class:highlighted;id:list-a-banana;text-align:left;'

The focus object is the option: a list item with no editable state.

nvda-log-field-a-b.txt

NVDA type

installed copy

NVDA version

2026.2

Have you tried any other versions of NVDA? If so, please report their behaviors.

Observed with the production component (same page, Edge):

  • NVDA 2023.1: every typed character is spoken.
  • NVDA 2026.2: only the first character is spoken.
  • NVDA 2026.3beta2: only the first character is spoken.

Not run: 2024.4 and 2025.1. From the source, the check that causes this (see "Additional context") is absent at release-2024.4 and present at release-2025.1, and is unchanged on master as of 2026-10-06.

Windows version

Windows 11 Version 24H2 Build 26100.9457 (ARM64)

Name and version of other software in use when reproducing the issue
  • Microsoft Edge 154.0.4258.53 (ARM64): reproduces with the attached page.
  • Microsoft Edge 154.0.4258.37 (ARM64): reproduces with the production component.
  • Google Chrome 154.0.8037.93 (64-bit): reproduces with the production component.
Other information about your system

Windows 11 ARM64 in a UTM virtual machine on a Mac. NVDA is the AMD64 build.

Does the issue still occur after restarting your computer?

I have restarted my computer and the issue still occurs

If NVDA add-ons are disabled, is your problem still occurring?

I have not restarted NVDA with add-ons disabled

Does the issue still occur after you run the System Accessibility Repair Tool (COM Registration Fixing Tool in older versions) in NVDA's tools menu?

I have not run the System Accessibility Repair Tool

Dominant language
Python
Stars
2.7k
Forks
842
Avg merge
2d 4h
Merged PRs (30d)
56

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nvaccess/nvda

All issues in nvaccess/nvda

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.