Skip to content

Commit acdfa73

Browse files
committed
Fix ctrl+v on Windows
1 parent 942bc8c commit acdfa73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/workbench/contrib/terminal/browser/terminal.contribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ if (BrowserFeatures.clipboard.readText) {
593593
KeybindingsRegistry.registerCommandAndKeybindingRule({
594594
id: SendSequenceTerminalAction.ID,
595595
weight: KeybindingWeight.WorkbenchContrib,
596-
when: ContextKeyExpr.equals(KEYBINDING_CONTEXT_TERMINAL_SHELL_TYPE_KEY, WindowsShellType.PowerShell),
596+
when: ContextKeyExpr.and(KEYBINDING_CONTEXT_TERMINAL_FOCUS, ContextKeyExpr.equals(KEYBINDING_CONTEXT_TERMINAL_SHELL_TYPE_KEY, WindowsShellType.PowerShell)),
597597
primary: KeyMod.CtrlCmd | KeyCode.KEY_V,
598598
handler: terminalSendSequenceCommand,
599599
args: { text: String.fromCharCode('V'.charCodeAt(0) - 64) }

0 commit comments

Comments
 (0)