-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Tree/List commands should only be enabled when they can execute #53950
Comments
Maybe one way out is to add more context keys depending on:
This would result in quite a bit of context key changes I guess when navigating around the key. |
Yeah, more context keys is always the answer to this and I wouldn't be worries about them changing |
@jrieken I added a I don't know why the list never implemented this command properly but I also went ahead and now the list will get its selection or focus cleared when pressing escape key. |
What to do here? |
@joaomoreno the tree/list needs to expose some additional APIs so that the WorkbenchTree/List can set some appropriate context keys properly. E.g.:
|
This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider. If you wonder what we are up to, please see our roadmap and issue reporting guidelines. Thanks for your understanding and happy coding! |
Two other issues have been marked as duplicates of this one: #58318 and #98321. I was also about to file a new issue until I found this. Can we re-open this as it's quite an important one? Until this is fixed the breadcrumbs are extremely difficult to use for keyboard users. Unfortunately, |
The
WorkbenchTree
in combination with theIListService
and its commands bind some keys overly aggressive. For instance,ArrowLeft
andArrowRight
always try to collapse/expand elements in a tree even though there is nothing to collapse orEscape
tries to clear the selection when there is no selection. The consequence is that those keys cannot be used for other commands when a tree is focused (like the breadcrumbs).The text was updated successfully, but these errors were encountered: