Skip to content

Commit

Permalink
First link in dialog is not first in tab order. (fix #239267) (#239318)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero authored Jan 31, 2025
1 parent f6fb04a commit 8c645ee
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/vs/base/browser/ui/dialog/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,6 @@ export class Dialog extends Disposable {

// Focus next element (with wrapping)
if (evt.equals(KeyCode.Tab) || evt.equals(KeyCode.RightArrow)) {
if (focusedIndex === -1) {
focusedIndex = 0; // default to focus first element if none have focus
}

const newFocusedIndex = (focusedIndex + 1) % focusableElements.length;
focusableElements[newFocusedIndex].focus();
}
Expand Down

0 comments on commit 8c645ee

Please sign in to comment.