提交 292a65d5 编写于 作者: D Daniel Imms

Disable scroll terminal buffer when alt buffer is active

They wouldn't do anything.

Fixes #90838
上级 4a7fddb0
......@@ -543,7 +543,7 @@ export function registerTerminalActions() {
keybinding: {
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.PageDown,
linux: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.DownArrow },
when: TerminalContextKeys.focus,
when: ContextKeyExpr.and(TerminalContextKeys.focus, TerminalContextKeys.altBufferActive.negate()),
weight: KeybindingWeight.WorkbenchContrib
},
precondition: TerminalContextKeys.processSupported
......@@ -583,7 +583,7 @@ export function registerTerminalActions() {
keybinding: {
primary: KeyMod.CtrlCmd | KeyCode.End,
linux: { primary: KeyMod.Shift | KeyCode.End },
when: TerminalContextKeys.focus,
when: ContextKeyExpr.and(TerminalContextKeys.focus, TerminalContextKeys.altBufferActive.negate()),
weight: KeybindingWeight.WorkbenchContrib
},
precondition: TerminalContextKeys.processSupported
......@@ -603,7 +603,7 @@ export function registerTerminalActions() {
keybinding: {
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.PageUp,
linux: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.UpArrow },
when: TerminalContextKeys.focus,
when: ContextKeyExpr.and(TerminalContextKeys.focus, TerminalContextKeys.altBufferActive.negate()),
weight: KeybindingWeight.WorkbenchContrib
},
precondition: TerminalContextKeys.processSupported
......@@ -643,7 +643,7 @@ export function registerTerminalActions() {
keybinding: {
primary: KeyMod.CtrlCmd | KeyCode.Home,
linux: { primary: KeyMod.Shift | KeyCode.Home },
when: TerminalContextKeys.focus,
when: ContextKeyExpr.and(TerminalContextKeys.focus, TerminalContextKeys.altBufferActive.negate()),
weight: KeybindingWeight.WorkbenchContrib
},
precondition: TerminalContextKeys.processSupported
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册