From 6feea8bbb34af6bedc36afbaa002b7ee5f2d676f Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Tue, 6 Sep 2022 10:54:51 -0700 Subject: [PATCH] Add code action menu ctrl+n, ctrl+p mac keybindings (#160199) Fixes #160126 --- .../editor/contrib/codeAction/browser/codeActionCommands.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/editor/contrib/codeAction/browser/codeActionCommands.ts b/src/vs/editor/contrib/codeAction/browser/codeActionCommands.ts index 6b48f0967900..d3b609d20cbf 100644 --- a/src/vs/editor/contrib/codeAction/browser/codeActionCommands.ts +++ b/src/vs/editor/contrib/codeAction/browser/codeActionCommands.ts @@ -544,6 +544,7 @@ registerEditorCommand(new CodeActionContribution({ weight: weight + 100000, primary: KeyCode.UpArrow, secondary: [KeyMod.CtrlCmd | KeyCode.UpArrow], + mac: { primary: KeyCode.UpArrow, secondary: [KeyMod.CtrlCmd | KeyCode.UpArrow, KeyMod.WinCtrl | KeyCode.KeyP] }, } })); @@ -557,6 +558,7 @@ registerEditorCommand(new CodeActionContribution({ weight: weight + 100000, primary: KeyCode.DownArrow, secondary: [KeyMod.CtrlCmd | KeyCode.DownArrow], + mac: { primary: KeyCode.DownArrow, secondary: [KeyMod.CtrlCmd | KeyCode.DownArrow, KeyMod.WinCtrl | KeyCode.KeyN] } } })); @@ -584,5 +586,3 @@ registerEditorCommand(new CodeActionContribution({ primary: KeyMod.CtrlCmd | KeyCode.Enter, } })); - -