Skip to content

Commit 9ffeec8

Browse files
committed
Add left/right folding keybindings for mac
1 parent 973f12a commit 9ffeec8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • src/vs/workbench/contrib/notebook/browser/contrib/fold

src/vs/workbench/contrib/notebook/browser/contrib/fold/folding.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ registerAction2(class extends Action2 {
140140
when: ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey)),
141141
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.US_OPEN_SQUARE_BRACKET,
142142
mac: {
143-
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.US_OPEN_SQUARE_BRACKET
143+
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.US_OPEN_SQUARE_BRACKET,
144+
secondary: [KeyCode.LeftArrow],
144145
},
145146
secondary: [KeyCode.LeftArrow],
146147
weight: KeybindingWeight.WorkbenchContrib
@@ -183,7 +184,8 @@ registerAction2(class extends Action2 {
183184
when: ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey)),
184185
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.US_CLOSE_SQUARE_BRACKET,
185186
mac: {
186-
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.US_CLOSE_SQUARE_BRACKET
187+
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.US_CLOSE_SQUARE_BRACKET,
188+
secondary: [KeyCode.RightArrow],
187189
},
188190
secondary: [KeyCode.RightArrow],
189191
weight: KeybindingWeight.WorkbenchContrib

0 commit comments

Comments
 (0)