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

[FEATURE] - New setting to define "focus behavior" while navigating in the Side Bar #716

Open
ZeChArtiahSaher opened this issue Apr 22, 2024 · 1 comment

Comments

@ZeChArtiahSaher
Copy link

ZeChArtiahSaher commented Apr 22, 2024

Environment/version

  • Extension version: not applicable
  • VSCode version: not applicable
  • OS version: not applicable

Steps to reproduce

When navigating with arrows if you press space or enter current editor group grabs focus which shouldn't happen if you press space

How it should work

  • When pressing space on current bookmark item the file is selected (and navigated to line with the bookmark) but not focused into.
  • When pressing enter on current bookmark item the file is selected (and navigated to line with the bookmark) and focused into.

Why?

With space and arrows you can slide through multiple bookmarks at once without having to refocus bookmarks Activity view/tab thing

@alefragnani
Copy link
Owner

alefragnani commented Apr 22, 2024

Hi @ZeChArtiahSaher ,

This is the expected behavior, since the action is the same as clicking the bookmark item. There is no distinction between them.

But I understand your point, you don't want to focus the editor while navigating the bookmarks in the Side Bar. To accomplish that, I could add a new setting to define the behavior. The default value would be the current behavior (focus the editor), and another value to "keep the focus in the Side Bar". This new behavior would be applied to Enter/Space keys and also mouse click.

Hope this helps

@alefragnani alefragnani changed the title [BUG] - Enter/Space key both focus on active editor group unlike explorer [FEATURE] - New setting to define "focus behavior" while navigating in the Side Bar Apr 22, 2024
@alefragnani alefragnani removed the bug label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants