Skip to content

Commit 81b404a

Browse files
MaycuzMaycoskotopes
authored
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>
1 parent 173c941 commit 81b404a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

applications/gui/modules/text_input.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ static bool char_is_lowercase(char letter) {
131131
}
132132

133133
static char char_to_uppercase(const char letter) {
134-
if(isalpha(letter)) {
134+
if(letter == '_') {
135+
return 0x20;
136+
} else if(isalpha(letter)) {
135137
return (letter - 0x20);
136138
} else {
137139
return letter;

0 commit comments

Comments
 (0)