Skip to content

Commit

Permalink
SCM - Fix issue with commit dropdown button (#154057)
Browse files Browse the repository at this point in the history
  • Loading branch information
lszomoru authored Jul 4, 2022
1 parent 4219f23 commit 2932e29
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/vs/workbench/contrib/scm/browser/scmViewPane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2411,7 +2411,12 @@ export class SCMViewPane extends ViewPane {
return;
} else if (isSCMActionButton(e.element)) {
this.scmViewService.focus(e.element.repository);
this.actionButtonRenderer.focusActionButton(e.element);

// Focus the action button
const target = e.browserEvent?.target as HTMLElement;
if (target.classList.contains('monaco-tl-row') || target.classList.contains('button-container')) {
this.actionButtonRenderer.focusActionButton(e.element);
}

return;
}
Expand Down

0 comments on commit 2932e29

Please sign in to comment.