mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-20 15:19:54 +01:00
Support back and forward keys in default shortcuts (#237701)
Support back and forward keys in default shortcuts These keys can be found on certain keyboards, and on custom layouts like [Extend](https://dreymar.colemak.org/layers-extend.html).
This commit is contained in:
@@ -1420,9 +1420,9 @@ export class NavigateForwardAction extends Action2 {
|
||||
precondition: ContextKeyExpr.has('canNavigateForward'),
|
||||
keybinding: {
|
||||
weight: KeybindingWeight.WorkbenchContrib,
|
||||
win: { primary: KeyMod.Alt | KeyCode.RightArrow },
|
||||
mac: { primary: KeyMod.WinCtrl | KeyMod.Shift | KeyCode.Minus },
|
||||
linux: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.Minus }
|
||||
win: { primary: KeyMod.Alt | KeyCode.RightArrow, secondary: [KeyCode.BrowserForward] },
|
||||
mac: { primary: KeyMod.WinCtrl | KeyMod.Shift | KeyCode.Minus, secondary: [KeyCode.BrowserForward] },
|
||||
linux: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.Minus, secondary: [KeyCode.BrowserForward] }
|
||||
},
|
||||
menu: [
|
||||
{ id: MenuId.MenubarGoMenu, group: '1_history_nav', order: 2 },
|
||||
@@ -1455,9 +1455,9 @@ export class NavigateBackwardsAction extends Action2 {
|
||||
icon: Codicon.arrowLeft,
|
||||
keybinding: {
|
||||
weight: KeybindingWeight.WorkbenchContrib,
|
||||
win: { primary: KeyMod.Alt | KeyCode.LeftArrow },
|
||||
mac: { primary: KeyMod.WinCtrl | KeyCode.Minus },
|
||||
linux: { primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.Minus }
|
||||
win: { primary: KeyMod.Alt | KeyCode.LeftArrow, secondary: [KeyCode.BrowserBack] },
|
||||
mac: { primary: KeyMod.WinCtrl | KeyCode.Minus, secondary: [KeyCode.BrowserBack] },
|
||||
linux: { primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.Minus, secondary: [KeyCode.BrowserBack] }
|
||||
},
|
||||
menu: [
|
||||
{ id: MenuId.MenubarGoMenu, group: '1_history_nav', order: 1 },
|
||||
|
||||
Reference in New Issue
Block a user