diff --git a/.vscode/notebooks/a.txt b/.vscode/notebooks/a.txt new file mode 100644 index 00000000000..c7d32d97026 --- /dev/null +++ b/.vscode/notebooks/a.txt @@ -0,0 +1,3 @@ +aaaa +bbbb +cccc \ No newline at end of file diff --git a/.vscode/notebooks/b.txt b/.vscode/notebooks/b.txt new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/vs/workbench/contrib/terminalContrib/find/browser/terminal.find.contribution.ts b/src/vs/workbench/contrib/terminalContrib/find/browser/terminal.find.contribution.ts index 5556b7e5d7f..2e0c626026e 100644 --- a/src/vs/workbench/contrib/terminalContrib/find/browser/terminal.find.contribution.ts +++ b/src/vs/workbench/contrib/terminalContrib/find/browser/terminal.find.contribution.ts @@ -134,7 +134,7 @@ registerActiveXtermAction({ keybinding: { primary: KeyMod.Alt | KeyCode.KeyR, mac: { primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KeyR }, - when: TerminalContextKeys.findVisible, + when: ContextKeyExpr.or(ContextKeyExpr.and(TerminalContextKeys.findVisible, TerminalContextKeys.focusInAny), TerminalContextKeys.findFocus), weight: KeybindingWeight.WorkbenchContrib }, precondition: ContextKeyExpr.or(TerminalContextKeys.processSupported, TerminalContextKeys.terminalHasBeenCreated),