Skip to content

Commit

Permalink
[keybinding] Align 'Close Window' keybinding with VS Code across OSes
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Keromnes <jan.keromnes@typefox.io>
  • Loading branch information
jankeromnes committed Nov 29, 2019
1 parent 2e049a8 commit ee1dd13
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import * as electron from 'electron';
import { inject, injectable } from 'inversify';
import {
Command, CommandContribution, CommandRegistry,
isOSX, MenuModelRegistry, MenuContribution, Disposable
isOSX, isWindows, MenuModelRegistry, MenuContribution, Disposable
} from '../../common';
import { KeybindingContribution, KeybindingRegistry } from '../../browser';
import { FrontendApplication, FrontendApplicationContribution, CommonMenus } from '../../browser';
Expand Down Expand Up @@ -196,7 +196,7 @@ export class ElectronMenuContribution implements FrontendApplicationContribution
},
{
command: ElectronCommands.CLOSE_WINDOW.id,
keybinding: 'ctrlcmd+shift+w'
keybinding: (isOSX ? 'cmd+shift+w' : (isWindows ? 'ctrl+w' : /* Linux */ 'ctrl+q'))
}
);
}
Expand Down

0 comments on commit ee1dd13

Please sign in to comment.