Skip to content

[A11y] Keyboard focus is not automatically moved to toast notification #81786

Closed

Description

Environment Details:
Application Name: Visual Studio Code
Application Version: 1.38.1 (user setup)
Commit: b37e54
Electron: 4.2.10
Node.js: 10.11.0
OS: Windows_NT x64 10.0.18362

Repro steps:

  1. Go to Extensions
  2. Pick any ol' extension (confirmed on Java Extension Pack)
  3. Use keyboard to select "Install" button
  4. Hit on keyboard

Expectation:
Keyboard focus is moved to the resulting toast, allowing me to dismiss or take action.

Reality:
Keyboard focus stays in the main editor window, where it was before. Difficult or impossible to tab to the resulting toast.

Activity

  1. vscodebot commented on Oct 1, 2019

    @vscodebot

    (Experimental duplicate detection)
    Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

  2. Benjin commented on Oct 1, 2019

    @Benjin
    Author

    Refiling of #81483 with repro specific to VS Code

  3. added
    accessibility
    workbench-notifications
    on Oct 2, 2019
  4. isidorn commented on Oct 2, 2019

    @isidorn

    Assignign to next milestone to investigate then.

  5. added
    under-discussion
    on Oct 16, 2019
  6. isidorn commented on Oct 25, 2019

    @isidorn

    I just tried this out and I disagree.
    Notificatinos are something that is in the background and they should definentely not steal focus.

    If every notification was stealing focus, then the user can be distributed all the time by random spam notifications from extensions. And this would lead to a very bad exeperience.

    I am closing this as caused by extension and my recommendation is that the Java Extension Pack should use a modal dialog, and not a notificatino if the extension wants to focus to be switched to that and the user to be interupted.
    I hope this makes sense, but all the API is there and it is up to the extension to decide which dialog should steal focus (use modal) and which not (use notifications).

    Bottom line: notifications should not be obtrusive.

  7. added
    *caused-by-extension
    on Oct 25, 2019
  8. vscodebot commented on Oct 25, 2019

    @vscodebot

    This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines.

    Happy Coding!

  9. locked and limited conversation to collaborators on Dec 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*caused-by-extensionaccessibilityunder-discussionworkbench-notifications

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions