diff options
author | nicm <nicm> | 2022-03-01 15:20:22 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2022-04-06 14:19:50 +0100 |
commit | bc0bd8213d26d7b85cdf2c26fbd68942291b5994 (patch) | |
tree | c372a60db7bfe91cea9ce61c761c57b7acf69477 | |
parent | 141a823ea421171d10466eccf0b2d03c0417667e (diff) | |
download | rtmux-bc0bd8213d26d7b85cdf2c26fbd68942291b5994.tar.gz rtmux-bc0bd8213d26d7b85cdf2c26fbd68942291b5994.tar.bz2 rtmux-bc0bd8213d26d7b85cdf2c26fbd68942291b5994.zip |
Don't convert codes for special keys (Tab, Enter, Escape).
-rw-r--r-- | input-keys.c | 2 |
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; } |