From f39a71aaade384d47917349f9d0b8dd709e8262e Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 1 Mar 2022 15:20:22 +0000 Subject: [PATCH] Don't convert codes for special keys (Tab, Enter, Escape). --- input-keys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input-keys.c b/input-keys.c index ae67b486..78ae91da 100644 --- a/input-keys.c +++ b/input-keys.c @@ -520,7 +520,7 @@ input_key(struct screen *s, struct bufferevent *bev, key_code key) } outkey = (key & KEYC_MASK_KEY); modifiers = (key & KEYC_MASK_MODIFIERS); - if (outkey < ' ') { + if (outkey < 32 && outkey != 9 && outkey != 13 && outkey != 27) { outkey = 64 + outkey; modifiers |= KEYC_CTRL; }