Move "special" keys into the Unicode PUA rather than making them top bit

set, some compilers do not allow enums that are larger than int. GitHub
issue 2673.
This commit is contained in:
nicm
2021-06-10 07:38:28 +00:00
parent f9f97c8145
commit f02a6c34e0
4 changed files with 29 additions and 14 deletions

View File

@ -477,7 +477,7 @@ input_key(struct screen *s, struct bufferevent *bev, key_code key)
input_key_write(__func__, bev, &ud.data[0], 1);
return (0);
}
if (justkey > 0x7f && justkey < KEYC_BASE) {
if (KEYC_IS_UNICODE(justkey)) {
if (key & KEYC_META)
input_key_write(__func__, bev, "\033", 1);
utf8_to_data(justkey, &ud);