Skip to content

Commit

Permalink
Fix VSCode modal message focus (#12206)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zebsterpasha authored Feb 22, 2023
1 parent bc11f75 commit 96720e0
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ export class ModalNotification extends AbstractDialog<string | undefined> {
detailElement.textContent = options.detail;
}

actions.forEach((action: MainMessageItem) => {
const button = this.createButton(action.title);
actions.forEach((action: MainMessageItem, index: number) => {
const button = index === 0
? this.appendAcceptButton(action.title)
: this.createButton(action.title);
button.classList.add('main');
this.controlPanel.appendChild(button);
this.addKeyListener(button,
Expand Down

0 comments on commit 96720e0

Please sign in to comment.