Add ability to type a space with the input keyboard by long-pressing "_" (#1550)

Co-authored-by: Mayco <tristan@polymerprints.nl>
Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Mayco 2022-08-07 17:40:09 +02:00 committed by GitHub
parent 173c94156d
commit 81b404aafa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,7 +131,9 @@ static bool char_is_lowercase(char letter) {
} }
static char char_to_uppercase(const char letter) { static char char_to_uppercase(const char letter) {
if(isalpha(letter)) { if(letter == '_') {
return 0x20;
} else if(isalpha(letter)) {
return (letter - 0x20); return (letter - 0x20);
} else { } else {
return letter; return letter;