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

master
Benno Schulenberg 2018-09-14 20:03:24 +02:00
parent eaeafe29ca
commit 4e7b92ed4c
1 changed files with 2 additions and 1 deletions

View File

@ -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) {