[PR #14723] [MERGED] [UIA] Dispatch a TextChanged event on new output #30226

Closed
opened 2026-01-31 09:39:26 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/14723
Author: @carlos-zamora
Created: 1/23/2023
Status: Merged
Merged: 1/23/2023
Merged by: @undefined

Base: mainHead: dev/cazamor/a11y/more-new-text-events


📝 Commits (1)

  • 645e708 [UIA] Dispatch a TextChanged event on new output

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 src/renderer/uia/UiaRenderer.cpp (+1 -0)

📄 Description

For some reason, Windows Terminal stops dispatching UIA TextChanged events sometimes. There isn't a reliable repro for this bug.

However, under NVDA's logger, it appears that when the bug does occur, we still dispatch UIA notifications (which may be ignored by NVDA in some configurations). A "quick fix" here is to dispatch a TextChanged event if we're going to dispatch a notification. Since we're just enabling a flag, we won't send two events at once.

Closes #10911


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/14723 **Author:** [@carlos-zamora](https://github.com/carlos-zamora) **Created:** 1/23/2023 **Status:** ✅ Merged **Merged:** 1/23/2023 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/cazamor/a11y/more-new-text-events` --- ### 📝 Commits (1) - [`645e708`](https://github.com/microsoft/terminal/commit/645e7087fd8ee6975017134838338043160a7d0f) [UIA] Dispatch a TextChanged event on new output ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/renderer/uia/UiaRenderer.cpp` (+1 -0) </details> ### 📄 Description For some reason, Windows Terminal stops dispatching UIA TextChanged events sometimes. There isn't a reliable repro for this bug. However, under NVDA's logger, it appears that when the bug does occur, we still dispatch UIA notifications (which may be ignored by NVDA in some configurations). A "quick fix" here is to dispatch a TextChanged event if we're going to dispatch a notification. Since we're just enabling a flag, we won't send two events at once. Closes #10911 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:39:26 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#30226