Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMayco <tristan.jansen@mailbox.org>2022-08-07 18:40:09 +0300
committerGitHub <noreply@github.com>2022-08-07 18:40:09 +0300
commit81b404aafa3ead93c1496de696bef5c99b21d6fa (patch)
tree4ab71e21e938a39ebbbf70ef38568c69b6180e41
parent173c94156d4c6644046ea782eb6ac7e1b18033a4 (diff)
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>
-rw-r--r--applications/gui/modules/text_input.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/applications/gui/modules/text_input.c b/applications/gui/modules/text_input.c
index c043c3c3..26f74e7a 100644
--- a/applications/gui/modules/text_input.c
+++ b/applications/gui/modules/text_input.c
@@ -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;