From 81b404aafa3ead93c1496de696bef5c99b21d6fa Mon Sep 17 00:00:00 2001 From: Mayco Date: Sun, 7 Aug 2022 17:40:09 +0200 Subject: [PATCH] Add ability to type a space with the input keyboard by long-pressing "_" (#1550) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Mayco Co-authored-by: あく --- applications/gui/modules/text_input.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/applications/gui/modules/text_input.c b/applications/gui/modules/text_input.c index c043c3c3c..26f74e7ac 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;