Skip to content

Commit

Permalink
Add ability to type a space with the input keyboard by long-pressing …
Browse files Browse the repository at this point in the history
…"_" (#1550)

Co-authored-by: Mayco <tristan@polymerprints.nl>
Co-authored-by: あく <alleteam@gmail.com>
  • Loading branch information
3 people authored Aug 7, 2022
1 parent 173c941 commit 81b404a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion applications/gui/modules/text_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ static bool char_is_lowercase(char letter) {
}

static char char_to_uppercase(const char letter) {
if(isalpha(letter)) {
if(letter == '_') {
return 0x20;
} else if(isalpha(letter)) {
return (letter - 0x20);
} else {
return letter;
Expand Down

0 comments on commit 81b404a

Please sign in to comment.