diff options
| author | Abhinav <abhinav.prsai@gmail.com> | 2025-06-11 20:38:28 +0100 |
|---|---|---|
| committer | Abhinav <abhinav.prsai@gmail.com> | 2025-06-11 20:38:28 +0100 |
| commit | 5ec82760216abf84b8548b19f5d74cece34d9bc4 (patch) | |
| tree | 3a7d260c4e7802e5cf0b8c5141a6439eba91f16d | |
| parent | 6ad00c03520e115dae41e1d986884f430b7a9741 (diff) | |
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
| -rw-r--r-- | src/parser.c | 4 |
1 files changed, 1 insertions, 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); } } |
