Restore previous behaviour so that C-X remains the same as C-x. Instead,

translate incoming extended keys so that they are consistent.
This commit is contained in:
nicm
2021-04-07 15:46:12 +00:00
parent 71fc9f3ee8
commit efb5e58c38
2 changed files with 24 additions and 15 deletions

View File

@ -239,10 +239,11 @@ key_string_lookup_string(const char *string)
/* Convert the standard control keys. */
if (key < KEYC_BASE && (modifiers & KEYC_CTRL) &&
strchr(other, key) == NULL &&
(key < 64 || key > 95)) {
strchr(other, key) == NULL) {
if (key >= 97 && key <= 122)
key -= 96;
else if (key >= 64 && key <= 95)
key -= 64;
else if (key == 32)
key = 0;
else if (key == 63)