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

Fixes output filter field icon cannot be tabbed to, only shift-tabbed #117832

Merged
merged 1 commit into from Mar 1, 2021

Conversation

Copy link
Contributor

@jeanp413 jeanp413 commented Feb 27, 2021

This PR fixes #117354

@isidorn isidorn self-assigned this Mar 1, 2021
@isidorn isidorn added this to the March 2021 milestone Mar 1, 2021
@@ -428,6 +428,8 @@ export class ActionBar extends Disposable implements IActionRunner {
protected focusNext(): boolean {
if (typeof this.focusedItem === 'undefined') {
this.focusedItem = this.viewItems.length - 1;
} else if (this.viewItems.length <= 1) {
Copy link
Contributor

@isidorn isidorn Mar 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not like this line, since ActionBar has a preventLoopNavigation flag. So by default we allow loop navigation. When you are on the last one and press next -> first one is focused

Copy link
Contributor Author

@jeanp413 jeanp413 Mar 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah but this is for the case when actionbar has only one action and is already focused, so pressing next won't change the focused action.

@@ -450,6 +452,8 @@ export class ActionBar extends Disposable implements IActionRunner {
protected focusPrevious(): boolean {
if (typeof this.focusedItem === 'undefined') {
this.focusedItem = 0;
} else if (this.viewItems.length <= 1) {
Copy link
Contributor

@isidorn isidorn Mar 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as my comment in focusNext()

@isidorn
Copy link
Contributor

@isidorn isidorn commented Mar 1, 2021

@jeanp413 thanks for the PR. Good changes. I have comment in the PR with some things that potentially need to be changed. Let me know what you think.

@isidorn
Copy link
Contributor

@isidorn isidorn commented Mar 1, 2021

Thanks, looks good, merging in.

@isidorn isidorn merged commit 721514f into microsoft:main Mar 1, 2021
6 of 7 checks passed
@jeanp413 jeanp413 deleted the fix-117354 branch Mar 1, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Apr 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants