Skip to content

Commit

Permalink
don't show title bar context on cmd (#165557)
Browse files Browse the repository at this point in the history
fixes #165545
  • Loading branch information
sbatten committed Nov 4, 2022
1 parent 9b6017a commit 9cf7094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/browser/parts/titlebar/titlebarPart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export class TitlebarPart extends Part implements ITitleService {
// Context menu on title
[EventType.CONTEXT_MENU, EventType.MOUSE_DOWN].forEach(event => {
this._register(addDisposableListener(this.rootContainer, event, e => {
if (e.type === EventType.CONTEXT_MENU || e.metaKey) {
if (e.type === EventType.CONTEXT_MENU || (e.target === this.title && e.metaKey)) {
EventHelper.stop(e);
this.onContextMenu(e, e.target === this.title ? MenuId.TitleBarTitleContext : MenuId.TitleBarContext);
}
Expand Down

0 comments on commit 9cf7094

Please sign in to comment.