Skip to content
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

[Bug] text cannot be read by Screen Reader when updating document #1840

Open
2 tasks done
yanshudan opened this issue Feb 13, 2025 · 6 comments
Open
2 tasks done

[Bug] text cannot be read by Screen Reader when updating document #1840

yanshudan opened this issue Feb 13, 2025 · 6 comments
Labels
bug Something isn't working

Comments

@yanshudan
Copy link

yanshudan commented Feb 13, 2025

Let's make sure issue is not already fixed in latest builds first.

Steps to reproduce

From a fresh installation and clean workspace:

Create a blank Eclipse plugin project
Install Screen Reader NVDA

I tried

try to call IDocumnent.replace() to add some text to a document

I expected: the added text should be announced by NVDA

But got: Nothing announeced by Screen Reader

Here is some relevant log output

Tested under this environment:

  • OS & version: Win11
  • Eclipse IDE/Platform version 2024-09
  • ...Anything else that can be useful...

Community

  • I understand reporting an issue to this OSS project does not mandate anyone to fix it. Other contributors may consider the issue, or not, at their own convenience. The most efficient way to get it fixed is that I fix it myself and contribute it back as a good quality patch to the project.
@yanshudan yanshudan added the bug Something isn't working label Feb 13, 2025
@mickaelistria
Copy link
Contributor

The Eclipse Document layer is a bit too high to evaluate that. Can you please try with to derive an example using StyledText.setText() and showcasing a similar error from one of the examples in eclipse.platform.swt/examples/org.eclipse.swt.snippets ?

@yanshudan
Copy link
Author

I have tried calling StyledText.setText(msg), screen reader cannot announce the content of msg.

@yanshudan
Copy link
Author

I've also tried these. All cannot be announced b y Screen Reader.

      styledText.insert();
      styledText.append();
      styledText.replaceTextRange();

@yanshudan
Copy link
Author

Hi @mickaelistria , do I have to showcase the error in eclipse.platform.swt/examples/org.eclipse.swt.snippets? I guess things are the same as long as I call the same API.

@mickaelistria mickaelistria transferred this issue from eclipse-platform/eclipse.platform.ui Feb 17, 2025
@akurtakov
Copy link
Member

@yanshudan Is the issue actually reproducible with some of the snippets? The smaller(less libraries/jars involved) the reproducer the easier it is to investigate an issue.

@mickaelistria
Copy link
Contributor

Thanks for the details. One thing I sincerely don't know is whether it's expected that each change coming from API gets announced. I don't really know how other frameworks deal with it. As you can imagine, there are ton of API calls that alterate the UI, and we cannot get all of them read as they're being processed. So how to choose?
Or maybe the change is announced only if widget has focus?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants