Skip to content

Commit 8125588

Browse files
authored
Add additonal editor focus context key for clear console action keybinding (#9222)
Addresses #9155 ### Release Notes #### New Features - The <kbd>Ctrl+L</kbd> keybinding to clear the console now works when the editor is focused, in addition to when the console is focused. #### Bug Fixes - N/A ### QA Notes If you have run code in console, you can clear it using <kbd>Ctrl+L</kbd> both when the console is focused (old) and when the editor is focused (new).
1 parent 4099c44 commit 8125588

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/positronConsole/browser/positronConsoleActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export function registerPositronConsoleActions() {
8989
f1: true,
9090
category,
9191
keybinding: {
92-
when: PositronConsoleFocused,
92+
when: ContextKeyExpr.or(EditorContextKeys.focus, PositronConsoleFocused),
9393
weight: KeybindingWeight.WorkbenchContrib,
9494
primary: KeyMod.CtrlCmd | KeyCode.KeyL,
9595
mac: {

0 commit comments

Comments
 (0)