-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
QuickPick: on close shuold return focus to previously focused element #93055
Comments
We had a somewhat similar discussion regarding focus and action bar and what should happen on escape here #91085 Though I do agree it would be best if quick pick would return focus to where it was before quick pick was opened. Though since this is a feature request against quick pick forwarding to @bpasero and @chrmarti |
This would probably annoy a lot of users that are used to focus returning to the editor. I would do a change only after careful consideration. The focus is returned here:
|
Did some testing and found that this might actually work well. We need to test it during daily work to be sure. I'm not sure in which cases this might be unexpected, but it does fix some obvious cases - like when the terminal has focus, you open the command palette and then escape to find the focus switched to the editor. |
Change pushed to master for testing. |
@chrmarti it could break any command that expects focus to be in the editor when quick pick closes (talking about the command palette). Just so that you know... |
Good for pushing to master, so we see try it out and breakages early. Thanks |
No feedback so far. Closing as fixed. :) |
Steps to Reproduce:
Expected: the keyboard focus should return to the view header button
I have created a simple extension to reproduce the issue: https://github.com/alanrenmsft/vscode-extension
and here is the recording:
This PR: #92969 will work for the scenarios where the original button is still present in the UI, but not for my scenario the view header buttons are only visible when the header is expanded and focused.
The text was updated successfully, but these errors were encountered: