summaryrefslogtreecommitdiffstats
path: root/input-keys.c
diff options
context:
space:
mode:
authornicm <nicm>2022-03-01 15:20:22 +0000
committernicm <nicm>2022-03-01 15:20:22 +0000
commitf39a71aaade384d47917349f9d0b8dd709e8262e (patch)
treee94ffe29747909d1cb3b79e556cab74c84d63c29 /input-keys.c
parent2da096d828f2b02f9d7fc329474f98aa6740328b (diff)
Don't convert codes for special keys (Tab, Enter, Escape).
Diffstat (limited to 'input-keys.c')
-rw-r--r--input-keys.c2
1 files changed, 1 insertions, 1 deletions
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;
}