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

Inline suggestion is read twice by the screen reader #177696

Closed
meganrogge opened this issue Mar 20, 2023 · 7 comments · Fixed by #179885
Closed

Inline suggestion is read twice by the screen reader #177696

meganrogge opened this issue Mar 20, 2023 · 7 comments · Fixed by #179885
Assignees
Labels
accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders verified Verification succeeded
Milestone

Comments

@meganrogge
Copy link
Contributor

reported by @jooyoungseo

  1. trigger an inline suggestion
  2. 🐛 it is read twice
@meganrogge meganrogge self-assigned this Mar 20, 2023
@meganrogge meganrogge added bug Issue identified by VS Code Team member as probable bug accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues labels Mar 20, 2023
@meganrogge meganrogge added this to the April 2023 milestone Mar 20, 2023
@meganrogge
Copy link
Contributor Author

@hediet maybe related to b7df1f8?

@Minhyung-Lee
Copy link

Minhyung-Lee commented Mar 20, 2023

I was able to reproduce this issue where the screen reader announces the ARIA-live autocomplete inline suggestion twice after announcing the typed letter.
I noticed something when I tried typing out various other libraries. The second announcement repeated the previously suggested ARIA announcement after the current one, instead of the current one twice. (Due to the nature of the bug, it might have gone unnoticed and understood as the ARIA-live announcing twice, since we were mainly looking at the "pandas" library in the meeting.)
This could create confusion for users when they are relying on TAB to autocomplete suggestions, since after pressing TAB, there is no confirmation of which of the two suggestions was chosen.
I experienced this on my laptop running Windows 11 with JAWS and wanted to share this information in case it might be helpful in resolving this bug.

Settings altered from the original VS Code Insiders build:

  • The "Editor: Screen Reader Announce Inline Suggestion" setting is enabled.
  • Under "Editor: Quick Suggestions," the Value of the Item "other" is switched from "on" to "inline."

@meganrogge meganrogge assigned hediet and unassigned meganrogge Apr 3, 2023
@meganrogge
Copy link
Contributor Author

@jooyoungseo has reported that this is no longer reproducing. However, there's a long delay between the audio cue and the inline suggestion being read - to the extent that he has turned it off.

This is because the audio cue takes some time to load. Is there anything we can do about this @hediet ?

if (notifyUser) {
this.audioCueService.playAudioCue(AudioCue.inlineSuggestion).then(() => {
if (this.editor.getOption(EditorOption.screenReaderAnnounceInlineSuggestion)) {
const lineText = this.editor.getModel()?.getLineContent(ghostText.lineNumber);
if (lineText) {
alert(ghostText.renderForScreenReader(lineText));
}
}
});
}

@meganrogge
Copy link
Contributor Author

this reproduces when the audio cue plays.

@jooyoungseo has disabled it because of the delay. @hediet is there anything we can do to play the audio cue immediately or is that impossible because it needs to be loaded every time?

@hediet
Copy link
Member

hediet commented Apr 13, 2023

is there anything we can do to play the audio cue immediately or is that impossible because it needs to be loaded every time?

It should be cached, so loading it a second time should be faster.

meganrogge added a commit that referenced this issue Apr 13, 2023
@VSCodeTriageBot VSCodeTriageBot added unreleased Patch has not yet been released in VS Code Insiders insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels Apr 14, 2023
@meganrogge
Copy link
Contributor Author

@jooyoungseo could you pls let us know if this is now working as expected - even when you enable the audio cue?

@jooyoungseo
Copy link

@meganrogge -- I have confirmed that this issue was resolved in today's insiders. Also, the delay issue has been addressed! Many thanks.

@meganrogge meganrogge added the verified Verification succeeded label Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants