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
When screenReaderMode=true, keypress triggers unwanted default browser behaviors #4269
Comments
So it appears that we don't cancel the I think the solution to all of these is to always cancel the |
Yes it's know that backspace will flush the textarea and cause problems, my plan is to eventually leverage shell integration in VS Code and provide hooks in xterm.js to set the textarea state (or just using
I believe there's a difference between reading something out and reading out input, if memory serves me it was announced in a different tone. There is also the problem of then the input being dependent on the latency to the backend. So, I don't think this would work. Should we check if ctrl is down and handle it differently here? xterm.js/src/browser/Terminal.ts Line 1063 in a351f57
|
Hi, can you take a look at the new pull request and see if it is better?
The issue I am talking about is that keys (or key combinations) such as backspace (code My last cl will fix this issue by announcing it only from the live region. Since you don't like it, I fix it differently in the new cl by not pusing to
I think we should also check the alt key? |
(cherry picked from commit d177acc)
thx! |
Details
Steps to reproduce
This is caused by the code here, which cancels the key event only if screenReaderMode is off. I wonder if this is to allow the screen reader to handle some key bindings. I am not sure about other OSes, but on ChromeOS, screen reader bindings (e.g. Search+up) works fine even if the key event is canceled. I think we should just always cancel the key event. If there is indeed a need to pass through the key event, the user of xterm.js can set a custom key handler with
attachCustomKeyEventHandler()
. What do you think?The text was updated successfully, but these errors were encountered: