C-h should not be treated specially and represented internally as \b but

as C-h like the other Ctrl keys. Backspace is already handled separately
if it VERASE.
This commit is contained in:
nicm
2024-08-26 07:45:05 +00:00
parent 9e2a7c28f5
commit 31b6c9356c
2 changed files with 6 additions and 4 deletions

View File

@ -608,8 +608,9 @@ input_key(struct screen *s, struct bufferevent *bev, key_code key)
* key and no modifiers.
*/
if (!(key & ~KEYC_MASK_KEY)) {
if (key == C0_BS || key == C0_HT ||
key == C0_CR || key == C0_ESC ||
if (key == C0_HT ||
key == C0_CR ||
key == C0_ESC ||
(key >= 0x20 && key <= 0x7f)) {
ud.data[0] = key;
input_key_write(__func__, bev, &ud.data[0], 1);