aboutsummaryrefslogtreecommitdiff
path: root/tty-keys.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2021-04-20 06:35:54 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2021-04-20 06:35:54 +0100
commit88575a27e2e847dbb97e44780ebe0e415f6a4ba5 (patch)
treec18757760f0a1d4568b3890613849321827a0897 /tty-keys.c
parent3a892228f45f744982fba827266cdf115db4464b (diff)
downloadrtmux-88575a27e2e847dbb97e44780ebe0e415f6a4ba5.tar.gz
rtmux-88575a27e2e847dbb97e44780ebe0e415f6a4ba5.tar.bz2
rtmux-88575a27e2e847dbb97e44780ebe0e415f6a4ba5.zip
Add another couple of keys needed for extended keys, GitHub issue 2658.
Diffstat (limited to 'tty-keys.c')
-rw-r--r--tty-keys.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tty-keys.c b/tty-keys.c
index 5bf4e4a5..3012be3d 100644
--- a/tty-keys.c
+++ b/tty-keys.c
@@ -959,7 +959,10 @@ tty_keys_extended_key(struct tty *tty, const char *buf, size_t len,
*/
if (nkey & KEYC_CTRL) {
onlykey = (nkey & KEYC_MASK_KEY);
- if (onlykey < 32 && onlykey != 9)
+ if (onlykey < 32 &&
+ onlykey != 9 &&
+ onlykey != 13 &&
+ onlykey != 27)
/* nothing */;
else if (onlykey >= 97 && onlykey <= 122)
onlykey -= 96;