aboutsummaryrefslogtreecommitdiff
path: root/input-keys.c
diff options
context:
space:
mode:
authornicm <nicm>2022-03-01 15:20:22 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2022-04-06 14:19:50 +0100
commitbc0bd8213d26d7b85cdf2c26fbd68942291b5994 (patch)
treec372a60db7bfe91cea9ce61c761c57b7acf69477 /input-keys.c
parent141a823ea421171d10466eccf0b2d03c0417667e (diff)
downloadrtmux-bc0bd8213d26d7b85cdf2c26fbd68942291b5994.tar.gz
rtmux-bc0bd8213d26d7b85cdf2c26fbd68942291b5994.tar.bz2
rtmux-bc0bd8213d26d7b85cdf2c26fbd68942291b5994.zip
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 f478cb95..feb62f6d 100644
--- a/input-keys.c
+++ b/input-keys.c
@@ -519,7 +519,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;
}