From efb5e58c381a5faf7751d916a60f256ede19c0e8 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 7 Apr 2021 15:46:12 +0000 Subject: Restore previous behaviour so that C-X remains the same as C-x. Instead, translate incoming extended keys so that they are consistent. --- key-string.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'key-string.c') diff --git a/key-string.c b/key-string.c index 0633ed22..8d60f132 100644 --- a/key-string.c +++ b/key-string.c @@ -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) -- cgit v1.2.3