summaryrefslogtreecommitdiffstats
path: root/key-string.c
diff options
context:
space:
mode:
authornicm <nicm>2021-04-07 15:46:12 +0000
committernicm <nicm>2021-04-07 15:46:12 +0000
commitefb5e58c381a5faf7751d916a60f256ede19c0e8 (patch)
tree9205f68080e4becb29a3ab89365657fd9cdeee33 /key-string.c
parent71fc9f3ee8753a2bb163c85c784936a8d6d3e0ac (diff)
Restore previous behaviour so that C-X remains the same as C-x. Instead,
translate incoming extended keys so that they are consistent.
Diffstat (limited to 'key-string.c')
-rw-r--r--key-string.c5
1 files changed, 3 insertions, 2 deletions
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)