Ctrl keys are < 0x7f, not Unicode.

This commit is contained in:
Nicholas Marriott 2021-04-28 20:20:53 +01:00
parent 059580e0f7
commit ad2f7642f2

View File

@ -238,7 +238,7 @@ key_string_lookup_string(const char *string)
}
/* Convert the standard control keys. */
if (KEYC_IS_UNICODE(key) &&
if (key <= 127 &&
(modifiers & KEYC_CTRL) &&
strchr(other, key) == NULL &&
key != 9 &&