diff options
author | Thomas Adam <thomas@xteddy.org> | 2021-04-07 18:01:20 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2021-04-07 18:01:20 +0100 |
commit | a57c2bf97e865c2f91488e5bb769adfeda958b6c (patch) | |
tree | bb23b48cd14fb8f003550b738c11a90513e3ca9f /key-string.c | |
parent | 3cd63cc9e0f8f1a4fb4e9da7f39de77ed58d61fb (diff) | |
parent | efb5e58c381a5faf7751d916a60f256ede19c0e8 (diff) | |
download | rtmux-a57c2bf97e865c2f91488e5bb769adfeda958b6c.tar.gz rtmux-a57c2bf97e865c2f91488e5bb769adfeda958b6c.tar.bz2 rtmux-a57c2bf97e865c2f91488e5bb769adfeda958b6c.zip |
Merge branch 'obsd-master' into master
Diffstat (limited to 'key-string.c')
-rw-r--r-- | key-string.c | 5 |
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) |