diff options
author | Mayco <tristan.jansen@mailbox.org> | 2022-08-07 18:40:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-07 18:40:09 +0300 |
commit | 81b404aafa3ead93c1496de696bef5c99b21d6fa (patch) | |
tree | 4ab71e21e938a39ebbbf70ef38568c69b6180e41 /applications | |
parent | 173c94156d4c6644046ea782eb6ac7e1b18033a4 (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>
Diffstat (limited to 'applications')
-rw-r--r-- | applications/gui/modules/text_input.c | 4 |
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; |