mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 06:38:23 +00:00
Fixes #14979: Bind zoom actions also to numpad equivalents
This commit is contained in:
parent
e01e27213d
commit
a710e6b304
1 changed files with 12 additions and 4 deletions
|
@ -34,15 +34,23 @@ workbenchActionsRegistry.registerWorkbenchAction(new SyncActionDescriptor(CloseF
|
|||
if (!!product.reportIssueUrl) {
|
||||
workbenchActionsRegistry.registerWorkbenchAction(new SyncActionDescriptor(ReportIssueAction, ReportIssueAction.ID, ReportIssueAction.LABEL), 'Help: Report Issues', helpCategory);
|
||||
}
|
||||
workbenchActionsRegistry.registerWorkbenchAction(new SyncActionDescriptor(ZoomInAction, ZoomInAction.ID, ZoomInAction.LABEL, { primary: KeyMod.CtrlCmd | KeyCode.US_EQUAL, secondary: [KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.US_EQUAL] }), 'View: Zoom In', viewCategory);
|
||||
workbenchActionsRegistry.registerWorkbenchAction(
|
||||
new SyncActionDescriptor(ZoomInAction, ZoomInAction.ID, ZoomInAction.LABEL, {
|
||||
primary: KeyMod.CtrlCmd | KeyCode.US_EQUAL,
|
||||
secondary: [KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.US_EQUAL, KeyMod.CtrlCmd | KeyCode.NUMPAD_ADD]
|
||||
}), 'View: Zoom In', viewCategory);
|
||||
workbenchActionsRegistry.registerWorkbenchAction(
|
||||
new SyncActionDescriptor(ZoomOutAction, ZoomOutAction.ID, ZoomOutAction.LABEL, {
|
||||
primary: KeyMod.CtrlCmd | KeyCode.US_MINUS,
|
||||
secondary: [KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.US_MINUS],
|
||||
linux: { primary: KeyMod.CtrlCmd | KeyCode.US_MINUS, secondary: [] }
|
||||
secondary: [KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.US_MINUS, KeyMod.CtrlCmd | KeyCode.NUMPAD_SUBTRACT],
|
||||
linux: { primary: KeyMod.CtrlCmd | KeyCode.US_MINUS, secondary: [KeyMod.CtrlCmd | KeyCode.NUMPAD_SUBTRACT] }
|
||||
}), 'View: Zoom Out', viewCategory
|
||||
);
|
||||
workbenchActionsRegistry.registerWorkbenchAction(new SyncActionDescriptor(ZoomResetAction, ZoomResetAction.ID, ZoomResetAction.LABEL), 'View: Reset Zoom', viewCategory);
|
||||
workbenchActionsRegistry.registerWorkbenchAction(
|
||||
new SyncActionDescriptor(ZoomResetAction, ZoomResetAction.ID, ZoomResetAction.LABEL, {
|
||||
primary: KeyMod.CtrlCmd | KeyCode.NUMPAD_0
|
||||
}), 'View: Reset Zoom', viewCategory
|
||||
);
|
||||
workbenchActionsRegistry.registerWorkbenchAction(new SyncActionDescriptor(CloseMessagesAction, CloseMessagesAction.ID, CloseMessagesAction.LABEL, { primary: KeyCode.Escape, secondary: [KeyMod.Shift | KeyCode.Escape] }, MessagesVisibleContext), 'Close Notification Messages');
|
||||
workbenchActionsRegistry.registerWorkbenchAction(new SyncActionDescriptor(CloseEditorAction, CloseEditorAction.ID, CloseEditorAction.LABEL, closeEditorOrWindowKeybindings), 'View: Close Editor', viewCategory);
|
||||
workbenchActionsRegistry.registerWorkbenchAction(new SyncActionDescriptor(ToggleFullScreenAction, ToggleFullScreenAction.ID, ToggleFullScreenAction.LABEL, { primary: KeyCode.F11, mac: { primary: KeyMod.CtrlCmd | KeyMod.WinCtrl | KeyCode.KEY_F } }), 'View: Toggle Full Screen', viewCategory);
|
||||
|
|
Loading…
Reference in a new issue