-
-
Notifications
You must be signed in to change notification settings - Fork 652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert disabling handling of caret notifications for UIA #16817
Revert disabling handling of caret notifications for UIA #16817
Conversation
WalkthroughThe recent update in the NVDA project primarily involves modifying how it interacts with XAML and WPF text controls. This includes changing class inheritance related to handling text change events, revamping import statements, and addressing a bug fix concerning caret movement by reverting to UIA events. Additionally, there is a deprecation notice for Changes
Sequence Diagram(s)Silently ignoring sequence diagram generation as the changes are too varied and straightforward. Recent review detailsConfiguration used: .coderabbit.yml Files selected for processing (2)
Additional context usedPath-based instructions (2)
Additional comments not posted (6)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Follow-up of #16711, #16817. Summary of the issue: UIA caret events in Windows Terminal were unreliable before #16711. In particular, when rapidly pressing backspace, sometimes the last character of the prompt would be erroneously read. Description of how this pull request fixes the issue: Re-enable caret events in Windows Terminal specifically. Note that caret events are still broken in this way in Conhost and are therefore left disabled.
Link to issue number:
Partially reverts #14888, #15838
Summary of the issue:
In #14888,
XamlEditableText
was added to ensure that UIA events wouldn't be used to determine caret changes, as the hypothesis was that they were fired too early. In #15838, I expanded this workaround for WPF (Visual Studio) text controls.It turns out @jcsteh found the actual cause of these issues and fixed them in #16711, allowing us to rely on events again.
Description of user facing changes
None, though caret movement would possibly be detected a little bit faster in XAML and WPF controls.
Description of development approach
Mostly reverts.
Testing strategy:
Known issues with pull request:
None known
Code Review Checklist:
Summary by CodeRabbit
Bug Fixes
Deprecations
NVDAObjects.UIA.InaccurateTextChangeEventEmittingEditableText
with no replacement.