-
Notifications
You must be signed in to change notification settings - Fork 997
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
RichTextBox always sends its entire contents as an accessibility event on focus. #12772
Comments
@Olina-Zhang can your team please test? |
@TheQuinbox thank you so much for filing this issue! This is a great find. That said, it looks like this is an issue with the RichEdit control itself, rather than WinForms specifically. Unfortunately, I think one would need to file an issue with the Office team, but I don't recall if there is any active development of the control. @TheQuinbox - could you file a feedback ticket with Windows (because it is distributed with Windows) and if you can provide a link here, we can do our best to pull together a case for someone to take a look at the issue. I'm going to close this from our end, but we want to make sure the right owners are notified of the issue. |
Hello, |
Hi @merriemcgaw, |
@TheQuinbox Thank you for pushing back, you made us look more closely. And, of course, you are correct. We've pinpointed where we are sending the entire contents. during the It looks like this code was added several years ago in response to nothing being sent to Narrator when getting focus, which is a clear violation of accessibility guidelines. Obviously sending then entire contents of the RichTextBox every time the control gets focus is not performant or reasonable when you've got a lot of text. We'll look on our side at what MFC exactly does, but I'm interested from the assistive technology user perspective, what would you find appropriate to be sending? If you have a large RichTextBox with lots of content, what is it that you would want announced by NVDA/Jaws/Narrator? I think we have the potential here to optimize for both performance and user experience. @LeafShi1 can your team take a look at the sources for the MFC control and see what it is sending when it gets focus? At the very least we can mimic that behavior. I'd like to see this in .NET 10 for sure. FYI @Tanya-Solyanik |
.NET version
DotNet 9.0
Did it work in .NET Framework?
Not tested/verified
Did it work in any of the earlier releases of .NET Core or .NET 5+?
No response
Issue description
If I create a RichTextBox, alt+tab away from the window, and alt+tab back, both JAWS and NVDA report the entire contents of the RichTextBox as its own accessibility event. This is not standard behavior.
Oddly enough, narrator is not effected, reading nothing at all when the control takes focus.
Form1.cs:
Program.cs
Steps to reproduce
The text was updated successfully, but these errors were encountered: