Skip to content

Commit 2932e29

Browse files
authored
SCM - Fix issue with commit dropdown button (microsoft#154057)
1 parent 4219f23 commit 2932e29

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/vs/workbench/contrib/scm/browser/scmViewPane.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2411,7 +2411,12 @@ export class SCMViewPane extends ViewPane {
24112411
return;
24122412
} else if (isSCMActionButton(e.element)) {
24132413
this.scmViewService.focus(e.element.repository);
2414-
this.actionButtonRenderer.focusActionButton(e.element);
2414+
2415+
// Focus the action button
2416+
const target = e.browserEvent?.target as HTMLElement;
2417+
if (target.classList.contains('monaco-tl-row') || target.classList.contains('button-container')) {
2418+
this.actionButtonRenderer.focusActionButton(e.element);
2419+
}
24152420

24162421
return;
24172422
}

0 commit comments

Comments
 (0)