-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
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:
xterm.js/src/common/input/Keyboard.ts
Lines 86 to 89 in f6a384b
| 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?