Replies: 3 comments 2 replies
-
Given this is a discussion, I'm going to convert it to a github discussion. @thgcode an event tracker log / output would be helpful to give us examples of the events. |
Beta Was this translation helpful? Give feedback.
-
Hi @thgcode I do not know if this scroll bar is considered a progress bar or if there is such distinction in Java Access Bridge framework. However note that sometimes, events from background windows are needed. At least this is the case for progress bar so that NVDA may be able to report progress bars in background if the option is enabled (see Object presentation parameters). |
Beta Was this translation helpful? Give feedback.
-
A bit unrelated, but I made this example that makes NVDA unresponsive (it becomes more apparent if you increase the delay on the sleep call), even if you move out from the Java window. In this example I hardcoded the delay, but in a real program it might delay because it is processing some data. import javax.accessibility.AccessibleContext;
import javax.swing.*;
public class Main {
public static void main(String[] args) throws Exception {
var frame = new JFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JButton start = new JButton("Start");
frame.add(start);
JButton quit = new JButton("Quit") {
@Override
public AccessibleContext getAccessibleContext() {
return new JButton.AccessibleJButton() {
@Override
public String getAccessibleName() {
try {
Thread.sleep(2000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
return super.getAccessibleName();
}
};
}
};
frame.add(quit);
frame.setVisible(true);
}
} |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
When using Insomnia to make an HTTP request, I noticed with the event tracker addon that NVDA whas receiving a lot of repetitive value change events from a scrollbar, but I was on another window.
Describe the solution you'd like
I think we could ignore these events, however I'm opening this for discussion as I don't know if it could have negative consequences, but most of the Java access bridge event processing code makes sense when the user is inside the Java window.
Describe alternatives you've considered
Additional context
Intellij was running a Spring project and Insomnia made an HTTP request for it.
Beta Was this translation helpful? Give feedback.
All reactions