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

@ -1300,7 +1300,7 @@ process_key:
return (0);
append_key:
if (key <= 0x1f || key >= KEYC_BASE)
if (key <= 0x1f || (key >= KEYC_BASE && key < KEYC_BASE_END))
return (0);
if (key <= 0x7f)
utf8_set(&tmp, key);