Skip to content

Commit

Permalink
[monaco] Fix keybindings on os x
Browse files Browse the repository at this point in the history
Fixes #3834

Signed-off-by: Sven Efftinge <[email protected]>
  • Loading branch information
svenefftinge committed Dec 14, 2018
1 parent cb9fc53 commit 10810a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/monaco/src/browser/monaco-keybinding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class MonacoKeybindingContribution implements KeybindingContribution {
first: Key.getKey(monaco2BrowserKeyCode(keyCode & 255)),
modifiers: []
};
if (keybinding.ctrlKey) {
if (keybinding.metaKey) {
sequence.modifiers!.push(KeyModifier.CtrlCmd);
}
if (keybinding.shiftKey) {
Expand All @@ -88,7 +88,7 @@ export class MonacoKeybindingContribution implements KeybindingContribution {
if (keybinding.altKey) {
sequence.modifiers!.push(KeyModifier.Alt);
}
if (keybinding.metaKey) {
if (keybinding.ctrlKey) {
sequence.modifiers!.push(KeyModifier.MacCtrl);
}
return KeyCode.createKeyCode(sequence);
Expand Down

0 comments on commit 10810a0

Please sign in to comment.