Skip to content

Commit

Permalink
Merge pull request #80491 from solomatov/expand-shrink-shortcuts
Browse files Browse the repository at this point in the history
Shorter expand/shrink selection shortcuts on mac
  • Loading branch information
jrieken authored Sep 6, 2019
2 parents f8daa9e + a563f4a commit 8f6a073
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/vs/editor/contrib/smartSelect/smartSelect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ class GrowSelectionAction extends AbstractSmartSelect {
kbOpts: {
kbExpr: EditorContextKeys.editorTextFocus,
primary: KeyMod.Shift | KeyMod.Alt | KeyCode.RightArrow,
mac: { primary: KeyMod.CtrlCmd | KeyMod.WinCtrl | KeyMod.Shift | KeyCode.RightArrow },
mac: {
primary: KeyMod.CtrlCmd | KeyMod.WinCtrl | KeyMod.Shift | KeyCode.RightArrow,
secondary: [KeyMod.WinCtrl | KeyMod.Shift | KeyCode.RightArrow],
},
weight: KeybindingWeight.EditorContrib
},
menubarOpts: {
Expand All @@ -191,7 +194,10 @@ class ShrinkSelectionAction extends AbstractSmartSelect {
kbOpts: {
kbExpr: EditorContextKeys.editorTextFocus,
primary: KeyMod.Shift | KeyMod.Alt | KeyCode.LeftArrow,
mac: { primary: KeyMod.CtrlCmd | KeyMod.WinCtrl | KeyMod.Shift | KeyCode.LeftArrow },
mac: {
primary: KeyMod.CtrlCmd | KeyMod.WinCtrl | KeyMod.Shift | KeyCode.LeftArrow,
secondary: [KeyMod.WinCtrl | KeyMod.Shift | KeyCode.LeftArrow],
},
weight: KeybindingWeight.EditorContrib
},
menubarOpts: {
Expand Down

0 comments on commit 8f6a073

Please sign in to comment.