Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sbatten committed Aug 2, 2018
1 parent 3a5b126 commit 1ce69ed
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/vs/workbench/browser/parts/titlebar/titlebarPart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,13 @@ export class TitlebarPart extends Part implements ITitleService {
}

// Maximize/Restore on doubleclick
this.title.on(EventType.DBLCLICK, (e) => {
EventHelper.stop(e);
if (isMacintosh) {
this.titleContainer.on(EventType.DBLCLICK, (e) => {
EventHelper.stop(e);

this.onTitleDoubleclick();
});
this.onTitleDoubleclick();
});
}

// Context menu on title
this.title.on([EventType.CONTEXT_MENU, EventType.MOUSE_DOWN], (e: MouseEvent) => {
Expand Down

0 comments on commit 1ce69ed

Please sign in to comment.