microsoft / microsoft/terminal

UIA: spurious text selection changed event on rapid text deletion

Open
#10,820 0 comments 0 reactions 0 assignees View on GitHub
Area-Accessibility Issue-Bug Priority-1 Product-Conhost
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Windows Terminal version (or Windows build number)

Conhost (all versions with UIA)

### Other Software

NVDA.

### Steps to reproduce

1. Open a conhost in which NVDA relies on caret events to detect movement (currently not enabled in consoles)
2. quickly delete text with backspace.

### Expected Behavior

NVDA reads all deleted characters, then stays silent on all subsequent presses of backspace.

### Actual Behavior

The last character of the prompt (`>`) is read, implying its deletion.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing rapid backspace deletion in conhost with NVDA and observe the UIA events emitted after the deleted characters. Trace the text-selection change event that causes the prompt character to be announced; done means deleted characters are read, but subsequent backspace presses produce no spurious selection event.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
accessibility
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.