Merge pull request #211234 from microsoft/tyriar/206726

Disable terminal find alt keybinding unless widget is visible
This commit is contained in:
Daniel Imms 2024-04-24 02:52:55 -07:00 committed by GitHub
commit 97258cb54e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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