Skip to content

Cursor reset when expanding list in listview when using keyboard navigation #1067

@u3kkasha

Description

@u3kkasha

Bug Report

I'm aware this is not a major bug, but I beg you please I was hoping you could add a Jira ticket. I'm aware this issues here are untracked. But I use your nice extension all the time and I was hoping you'd address my problem 😭 .

Current Behavior

I usually use my keyboard for navigation, using tabs and enter and arrows to navigate between collections/documents. However, every time I expand a collection to view its documents the cursor gets reset to the top and I have to use arrow keys to move back to view the documents.

Expected Behavior/Code

I wished that the cursor would remain at the same location after expanding the list in the listview so that I can drop into the expanded section and navigate via keyboard (like other vscode listviews like file explorer for example).

Image

Environment

  • node.js / npm versions: 22.13.1 / 11.0.0
  • OS: Windows 10

Possible Solution

Please store the cursor position within the list view beforehand and move the focus to that location after expansion.

Additional Context/Screenshots

As you can see, my mouse pointer (the pencil) is stationary, I only moved it at the end to stop the recording, but I used my keyboard (arrow keys and enter) to traverse the listview.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions