Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ctrl+h is NOT delete word left in cmd.exe. Instead it is delete one c… #234249

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down