Skip to content

Commit

Permalink
Fix Settings indicator tabIndexes (#171770)
Browse files Browse the repository at this point in the history
Fix tabIndex issues

Ref #167470
  • Loading branch information
rzhao271 committed Jan 19, 2023
1 parent 40e5320 commit 04119d2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export class SettingsTreeIndicatorsLabel implements IDisposable {

const currentlyFocusedIndicator = indicators[this.focusedIndex];
const previousFocusedElement = currentlyFocusedIndicator.focusElement ?? currentlyFocusedIndicator.element;
previousFocusedElement.removeAttribute('tabIndex');
previousFocusedElement.tabIndex = -1;

this.focusedIndex = index;
}
Expand Down Expand Up @@ -364,6 +364,7 @@ export class SettingsTreeIndicatorsLabel implements IDisposable {

const overriddenScope = element.overriddenScopeList[0];
const view = DOM.append(this.scopeOverridesIndicator.element, $('a.modified-scope', undefined, this.getInlineScopeDisplayText(overriddenScope)));
view.tabIndex = -1;
this.scopeOverridesIndicator.focusElement = view;
const onClickOrKeydown = (e: UIEvent) => {
const [scope, language] = overriddenScope.split(':');
Expand Down

0 comments on commit 04119d2

Please sign in to comment.