Add another couple of keys needed for extended keys, GitHub issue 2658.

This commit is contained in:
Nicholas Marriott
2021-04-20 06:35:54 +01:00
parent 3a892228f4
commit 88575a27e2
3 changed files with 17 additions and 4 deletions

View File

@ -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;