From 5ec82760216abf84b8548b19f5d74cece34d9bc4 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Wed, 11 Jun 2025 20:38:28 +0100 Subject: remove old lowercasing logic no longer doing lowercase for all the rokens. this was old logic and now omitted. this also allows support for using characters such as BackSpace which requires capitalisation --- src/parser.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/parser.c b/src/parser.c index ebfe4ef..5b8e6f0 100644 --- a/src/parser.c +++ b/src/parser.c @@ -104,9 +104,6 @@ static unsigned parse_combo(const char *combo, Config *cfg, KeySym *out_ks) } buf[sizeof buf - 1] = '\0'; for (char *tok = strtok(buf, "+"); tok; tok = strtok(NULL, "+")) { - for (char *q = tok; *q; q++) { - *q = tolower((unsigned char)*q); - } if (!strcmp(tok, "mod")) { m |= cfg->modkey; } @@ -123,6 +120,7 @@ static unsigned parse_combo(const char *combo, Config *cfg, KeySym *out_ks) m |= Mod4Mask; } else { + ks = XStringToKeysym(tok); ks = parse_keysym(tok); } } -- cgit v1.2.3