Commit 05a30bd
fix(textinput): announce caret navigation to screen readers
The Composition WindowsTextInput never raised a UI Automation
TextSelectionChanged event when the caret or selection moved, so
Narrator and braille displays stayed silent while arrowing through
text. Focus was announced on entering the field, but per-character,
word, and line caret navigation produced no event for assistive
technology to re-read.
Raise UIA_Text_TextSelectionChangedEventId from OnSelectionChanged,
guarded by UiaClientsAreListening(), mirroring the existing
focus-changed and value-changed raises elsewhere in the Composition
layer.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent ebdfffb commit 05a30bd
2 files changed
Lines changed: 18 additions & 0 deletions
File tree
- change
- vnext/Microsoft.ReactNative/Fabric/Composition/TextInput
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1457 | 1457 | | |
1458 | 1458 | | |
1459 | 1459 | | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
1460 | 1471 | | |
1461 | 1472 | | |
1462 | 1473 | | |
| |||
0 commit comments