aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-02-28 10:38:33 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-03-04 08:43:43 +0000
commit1b4d9eade004c9050a918563e00d56de965d97e2 (patch)
tree96fddfe98d7f1ae482c8a3cd44f187550ea315ca
parentdoc: foot.ini: update default key bindings - use lower case keys (diff)
config: parse_key_combos: lower case manually, instead of calling tolower()
tolower() is locale dependent, something we do not want in this case.
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index 633d1ad9..927d9450 100644
--- a/config.c
+++ b/config.c
@@ -1202,7 +1202,7 @@ parse_key_combos(struct config *conf, const char *combos, key_combo_list_t *key_
"shifted keys not supported with explicit \033[1mShift\033[m "
"modifier",
path, lineno, section, option, combo);
- *key = tolower(*key);
+ *key = *key - 'A' + 'a';
}
/* Translate key name to symbol */