未验证 提交 a13c32dd 编写于 作者: A Alex Dima

Fixes #90171

上级 7a036679
...@@ -1753,12 +1753,17 @@ registerCommand(new EditorOrNativeTextInputCommand({ ...@@ -1753,12 +1753,17 @@ registerCommand(new EditorOrNativeTextInputCommand({
kbExpr: null, kbExpr: null,
primary: KeyMod.CtrlCmd | KeyCode.KEY_A primary: KeyMod.CtrlCmd | KeyCode.KEY_A
}, },
menuOpts: { menuOpts: [{
menuId: MenuId.MenubarSelectionMenu, menuId: MenuId.MenubarSelectionMenu,
group: '1_basic', group: '1_basic',
title: nls.localize({ key: 'miSelectAll', comment: ['&& denotes a mnemonic'] }, "&&Select All"), title: nls.localize({ key: 'miSelectAll', comment: ['&& denotes a mnemonic'] }, "&&Select All"),
order: 1 order: 1
} }, {
menuId: MenuId.CommandPalette,
group: '',
title: nls.localize('selectAll', "Select All"),
order: 1
}]
})); }));
registerCommand(new EditorOrNativeTextInputCommand({ registerCommand(new EditorOrNativeTextInputCommand({
...@@ -1771,12 +1776,17 @@ registerCommand(new EditorOrNativeTextInputCommand({ ...@@ -1771,12 +1776,17 @@ registerCommand(new EditorOrNativeTextInputCommand({
kbExpr: EditorContextKeys.textInputFocus, kbExpr: EditorContextKeys.textInputFocus,
primary: KeyMod.CtrlCmd | KeyCode.KEY_Z primary: KeyMod.CtrlCmd | KeyCode.KEY_Z
}, },
menuOpts: { menuOpts: [{
menuId: MenuId.MenubarEditMenu, menuId: MenuId.MenubarEditMenu,
group: '1_do', group: '1_do',
title: nls.localize({ key: 'miUndo', comment: ['&& denotes a mnemonic'] }, "&&Undo"), title: nls.localize({ key: 'miUndo', comment: ['&& denotes a mnemonic'] }, "&&Undo"),
order: 1 order: 1
} }, {
menuId: MenuId.CommandPalette,
group: '',
title: nls.localize('undo', "Undo"),
order: 1
}]
})); }));
registerCommand(new EditorHandlerCommand('default:' + Handler.Undo, Handler.Undo)); registerCommand(new EditorHandlerCommand('default:' + Handler.Undo, Handler.Undo));
...@@ -1792,12 +1802,17 @@ registerCommand(new EditorOrNativeTextInputCommand({ ...@@ -1792,12 +1802,17 @@ registerCommand(new EditorOrNativeTextInputCommand({
secondary: [KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KEY_Z], secondary: [KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KEY_Z],
mac: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KEY_Z } mac: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KEY_Z }
}, },
menuOpts: { menuOpts: [{
menuId: MenuId.MenubarEditMenu, menuId: MenuId.MenubarEditMenu,
group: '1_do', group: '1_do',
title: nls.localize({ key: 'miRedo', comment: ['&& denotes a mnemonic'] }, "&&Redo"), title: nls.localize({ key: 'miRedo', comment: ['&& denotes a mnemonic'] }, "&&Redo"),
order: 2 order: 2
} }, {
menuId: MenuId.CommandPalette,
group: '',
title: nls.localize('redo', "Redo"),
order: 1
}]
})); }));
registerCommand(new EditorHandlerCommand('default:' + Handler.Redo, Handler.Redo)); registerCommand(new EditorHandlerCommand('default:' + Handler.Redo, Handler.Redo));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册