1
1

tweaks: sharpen an optimization, to allow DEL to be a shortcut

Этот коммит содержится в:
Benno Schulenberg 2018-09-14 20:03:24 +02:00
родитель eaeafe29ca
Коммит 4e7b92ed4c

Просмотреть файл

@ -1765,7 +1765,8 @@ const sc *get_shortcut(int *kbinput)
#endif
/* Plain characters cannot be shortcuts, so just skip those. */
if (!meta_key && (*kbinput & 0x7F) >= 0x20 && *kbinput <= 0xFF)
if (!meta_key && ((*kbinput >= 0x20 && *kbinput < 0x7F) ||
(*kbinput >= 0xA0 && *kbinput <= 0xFF)))
return NULL;
for (s = sclist; s != NULL; s = s->next) {