Skip to content

Don't send ^H when pressing shift+backspace #3759

@tecnobrat

Description

@tecnobrat

I'm not actually sure the purpose of this, but I can't find any other linux-based terminal that currently does this.

Given this diff:

if (ev.shiftKey) {
result.key = C0.BS; // ^H
break;
} else if (ev.altKey) {

It appears that xterm is explicitly sending a CTRL+h keypress when you press shift+backspace. This causes issues if you want to use CTRL+h for different reasons, such as using it as a mapping to swap tmux panes. It causes the most issues when you're typing things like environment variables and make a mistake so you hit backspace (often without releasing shift) and then tmux (or whatever extra actions you have ctrl+h bound to) gets fired.

It looks like it was added in the very first commit here: Tyriar@8bc844c

Is there any way I can disable this behaviour or can anyone explain the purpose?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions