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

set, some compilers cannot handle enums that are larger than int. GitHub issue
2673.
This commit is contained in:
Nicholas Marriott
2021-04-28 09:18:04 +01:00
parent 589d3eb48f
commit e2d01795d2
4 changed files with 29 additions and 14 deletions

View File

@ -476,7 +476,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);