From 5fc00889a9fad792c20755857e2af373ee21cb88 Mon Sep 17 00:00:00 2001 From: Douvahkiin Date: Wed, 20 Nov 2024 09:05:29 +0000 Subject: [PATCH] Ctrl+h is NOT delete word left in cmd.exe. Instead it is delete one character left. --- .../contrib/terminal/browser/terminal.contribution.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vs/workbench/contrib/terminal/browser/terminal.contribution.ts b/src/vs/workbench/contrib/terminal/browser/terminal.contribution.ts index 452daef0e187e..11c0890da874f 100644 --- a/src/vs/workbench/contrib/terminal/browser/terminal.contribution.ts +++ b/src/vs/workbench/contrib/terminal/browser/terminal.contribution.ts @@ -204,11 +204,11 @@ registerSendSequenceKeybinding(String.fromCharCode('W'.charCodeAt(0) - Constants mac: { primary: KeyMod.Alt | KeyCode.Backspace } }); if (isWindows) { - // Delete word left: ctrl+h - // Windows cmd.exe requires ^H to delete full word left + // Delete left: ctrl+h + // Windows cmd.exe requires ^H to delete one character left registerSendSequenceKeybinding(String.fromCharCode('H'.charCodeAt(0) - Constants.CtrlLetterOffset), { when: ContextKeyExpr.and(TerminalContextKeys.focus, ContextKeyExpr.equals(TerminalContextKeyStrings.ShellType, WindowsShellType.CommandPrompt)), - primary: KeyMod.CtrlCmd | KeyCode.Backspace, + primary: KeyCode.Backspace, }); } // Delete word right: alt+d [27, 100]