Skip to content

Extension tree that use vscode.open and vscode.diff commands should respect enter vs. space #193020

Closed

Description

@alexr00

When discussing with Megan Rogge (@meganrogge) how we're going to improve accessibility for GitHub Pull Requests and Issues when opening a PR description we found that the built in Extensions view does the following:

  • Arrow keys are used to navigate between list/tree items
  • Enter opens the extension item and moves focus to the extension description webview editor
  • Space opens the extension item and keeps focus in the tree

Extension trees don't work the same way:

  • Arrow keys are used to navigate between list/tree items (same as above)
  • Both enter and space run the tree item command and keep focus in the tree

We already have special handling for vscode.open and vscode.diff command run from the tree view so that we can keep things ctrl+click as open to the side. We should also handle enter and space as the Extensions view does.

Activity

  1. added
    feature-request
    tree-views
    on Sep 13, 2023
  2. changed the title [-]Extension tree's that use `vscode.open` and `vscode.diff` commands should respect enter vs. space[/-] [+]Extension tree that use `vscode.open` and `vscode.diff` commands should respect enter vs. space[/+] on Sep 13, 2023
  3. alexr00 commented on Sep 18, 2023

    @alexr00
    MemberAuthor

    Actually, looks like this already works. The problem was that we were preserving focus in the PR extension: microsoft/vscode-pull-request-github#5250

    I did find another issue while investigating this though: #193346

  4. removed this from the September 2023 milestone on Sep 18, 2023
  5. locked and limited conversation to collaborators on Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requesttree-views

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions