提交 ed3b90a8 编写于 作者: B Benjamin Pasero

Command-E on Mac behaves differently from other applications (fixes #3431)

上级 114f99b7
......@@ -244,7 +244,11 @@ export class StartFindAction extends EditorAction {
precondition: null,
kbOpts: {
kbExpr: null,
primary: KeyMod.CtrlCmd | KeyCode.KEY_F
primary: KeyMod.CtrlCmd | KeyCode.KEY_F,
mac: {
primary: KeyMod.CtrlCmd | KeyCode.KEY_F,
secondary: [KeyMod.CtrlCmd | KeyCode.KEY_E]
}
}
});
}
......
......@@ -189,8 +189,7 @@ Registry.as<IQuickOpenRegistry>(QuickOpenExtensions.Quickopen).registerQuickOpen
);
const quickOpenKb: IKeybindings = {
primary: KeyMod.CtrlCmd | KeyCode.KEY_P,
secondary: [KeyMod.CtrlCmd | KeyCode.KEY_E]
primary: KeyMod.CtrlCmd | KeyCode.KEY_P
};
function navigateKeybinding(shift: boolean): IKeybindings {
......@@ -206,10 +205,10 @@ function navigateKeybinding(shift: boolean): IKeybindings {
} else {
return {
primary: KeyMod.CtrlCmd | KeyCode.KEY_P,
secondary: [KeyMod.CtrlCmd | KeyCode.KEY_E, KeyMod.CtrlCmd | KeyCode.Tab],
secondary: [KeyMod.CtrlCmd | KeyCode.Tab],
mac: {
primary: KeyMod.CtrlCmd | KeyCode.KEY_P,
secondary: [KeyMod.CtrlCmd | KeyCode.KEY_E, KeyMod.WinCtrl | KeyCode.Tab]
secondary: [KeyMod.WinCtrl | KeyCode.Tab]
}
};
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册