diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2021-04-20 06:35:54 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2021-04-20 06:35:54 +0100 |
commit | 88575a27e2e847dbb97e44780ebe0e415f6a4ba5 (patch) | |
tree | c18757760f0a1d4568b3890613849321827a0897 /key-string.c | |
parent | 3a892228f45f744982fba827266cdf115db4464b (diff) | |
download | rtmux-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 'key-string.c')
-rw-r--r-- | key-string.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/key-string.c b/key-string.c index 8d60f132..c24a33fc 100644 --- a/key-string.c +++ b/key-string.c @@ -164,7 +164,7 @@ key_string_get_modifiers(const char **string) key_code key_string_lookup_string(const char *string) { - static const char *other = "!#()+,-.0123456789:;<=>'\r\t\177"; + static const char *other = "!#()+,-.0123456789:;<=>'\r\t\177`/"; key_code key, modifiers; u_int u, i; struct utf8_data ud, *udp; @@ -238,8 +238,12 @@ key_string_lookup_string(const char *string) } /* Convert the standard control keys. */ - if (key < KEYC_BASE && (modifiers & KEYC_CTRL) && - strchr(other, key) == NULL) { + if (key < KEYC_BASE && + (modifiers & KEYC_CTRL) && + strchr(other, key) == NULL && + key != 9 && + key != 13 && + key != 27) { if (key >= 97 && key <= 122) key -= 96; else if (key >= 64 && key <= 95) |