Disable terminal find alt keybinding unless widget is visible

Fixes #206726
This commit is contained in:
Daniel Imms 2024-04-24 02:35:13 -07:00
parent e46e2ab21a
commit 73f03cc47e
No known key found for this signature in database
GPG key ID: E5CF412B63651C69

View file

@ -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),