mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Disable terminal find alt keybinding unless widget is visible
Fixes #206726
This commit is contained in:
parent
e46e2ab21a
commit
73f03cc47e
|
@ -134,7 +134,7 @@ registerActiveXtermAction({
|
|||
keybinding: {
|
||||
primary: KeyMod.Alt | KeyCode.KeyR,
|
||||
mac: { primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KeyR },
|
||||
when: ContextKeyExpr.or(TerminalContextKeys.focusInAny, TerminalContextKeys.findFocus),
|
||||
when: TerminalContextKeys.findVisible,
|
||||
weight: KeybindingWeight.WorkbenchContrib
|
||||
},
|
||||
precondition: ContextKeyExpr.or(TerminalContextKeys.processSupported, TerminalContextKeys.terminalHasBeenCreated),
|
||||
|
@ -151,7 +151,7 @@ registerActiveXtermAction({
|
|||
keybinding: {
|
||||
primary: KeyMod.Alt | KeyCode.KeyW,
|
||||
mac: { primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KeyW },
|
||||
when: ContextKeyExpr.or(TerminalContextKeys.focusInAny, TerminalContextKeys.findFocus),
|
||||
when: TerminalContextKeys.findVisible,
|
||||
weight: KeybindingWeight.WorkbenchContrib
|
||||
},
|
||||
precondition: ContextKeyExpr.or(TerminalContextKeys.processSupported, TerminalContextKeys.terminalHasBeenCreated),
|
||||
|
@ -168,7 +168,7 @@ registerActiveXtermAction({
|
|||
keybinding: {
|
||||
primary: KeyMod.Alt | KeyCode.KeyC,
|
||||
mac: { primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KeyC },
|
||||
when: ContextKeyExpr.or(TerminalContextKeys.focusInAny, TerminalContextKeys.findFocus),
|
||||
when: TerminalContextKeys.findVisible,
|
||||
weight: KeybindingWeight.WorkbenchContrib
|
||||
},
|
||||
precondition: ContextKeyExpr.or(TerminalContextKeys.processSupported, TerminalContextKeys.terminalHasBeenCreated),
|
||||
|
|
Loading…
Reference in a new issue