From 32c97a7f2f12a6689b8ffc5596484860ac8fbbec Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 28 Apr 2021 20:20:53 +0100 Subject: [PATCH] Ctrl keys are < 0x7f, not Unicode. --- key-string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/key-string.c b/key-string.c index b41eaa73..406d26dd 100644 --- a/key-string.c +++ b/key-string.c @@ -238,7 +238,7 @@ key_string_lookup_string(const char *string) } /* Convert the standard control keys. */ - if (KEYC_IS_UNICODE(key) && + if (key <= 127 && (modifiers & KEYC_CTRL) && strchr(other, key) == NULL && key != 9 &&