From f8eda660d2e5a47bf631e1d33382285c6cf3c7a0 Mon Sep 17 00:00:00 2001 From: Willy-JL Date: Fri, 24 Feb 2023 00:49:41 +0000 Subject: [PATCH] Keyboard long press first char for lowercase --- applications/services/gui/modules/text_input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/services/gui/modules/text_input.c b/applications/services/gui/modules/text_input.c index ebe32b7a5..5fd306aa6 100644 --- a/applications/services/gui/modules/text_input.c +++ b/applications/services/gui/modules/text_input.c @@ -237,7 +237,7 @@ static void text_input_view_draw_callback(Canvas* canvas, void* _model) { canvas_set_color(canvas, ColorBlack); } - if((model->clear_default_text || text_length == 0) && char_is_lowercase(keys[column].text)) { + if(model->clear_default_text || text_length == 0) { canvas_draw_glyph( canvas, keyboard_origin_x + keys[column].x, @@ -324,7 +324,7 @@ static void text_input_handle_ok(TextInput* text_input, TextInputModel* model, b text_length = 0; } if(text_length < (model->text_buffer_size - 1)) { - if(shift || (text_length == 0 && char_is_lowercase(selected))) { + if(shift != (text_length == 0)) { selected = char_to_uppercase(selected); } model->text_buffer[text_length] = selected;