-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
[Accessibility] Character is not read properly in terminal input after auto-completion #131295
Comments
@jooyoungseo thanks a lot for creating the issue! I can reproduce this also for my PowerShell terminal on Windows. @Tyriar there might have already been an issue like this, this sounds familiar, maybe we already discussed it? |
I did look into this before and it's kind of difficult because of how it's not a real textarea and we don't know what the actual prompt is. Maybe we could special case left/right to read the character if it resulted in a cursor move or something. |
This is happening because when you hit tab, we clear the backing textarea which is the reason why left/right work sometimes. This is to prevent some weird state and causing a lot of confusion, we just bail out and clear it all together. After chatting with @meganrogge I think we can move forward on this when we support shell integration (#133084) as that will enable us to know exactly what the prompt input is and we know where the cursor is so we could keep the textarea in sync. |
Thanks for the update @Tyriar |
We would also want to cover other cases like up/down changing the prompt history entry (#94708) |
This should work now |
I'm still seeing incorrect character read-out when I manually type |
@bhavyaus a gif would be helpful with |
CC @isidorn
Found the following issue in both NVDA and JAWS.
Closely related to #131090.
Does this issue occur when all extensions are disabled?: Yes
System Info
Version: 1.60.0-insider (system setup)
Commit: 89bbd37
Date: 2021-08-20T17:51:50.560Z
Electron: 13.1.8
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.19043
Steps to Reproduce
touch foo.txt
to create a new file.fo
and hit Tab key to auto-completefoo.txt
in terminal input. [do NOT hit Enter yet]In contrast, the following usecase does not cause this issue:
foo.txt
in terminal and hit left-/right-arrow keys.The text was updated successfully, but these errors were encountered: