From 37939dec860d2e2b4275d35af0b1257272e987b0 Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Mon, 24 Jul 2023 00:41:50 +0200 Subject: [PATCH] <:N1:1130620612352679958><:N2:1130620354440745162> --- applications/services/gui/modules/text_input.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/applications/services/gui/modules/text_input.c b/applications/services/gui/modules/text_input.c index 210b4cc47..26b88670e 100644 --- a/applications/services/gui/modules/text_input.c +++ b/applications/services/gui/modules/text_input.c @@ -827,12 +827,7 @@ bool text_input_insert_character(TextInput* text_input, char chr) { } if(chr == 0x01) { // Ctrl A = Select all text with_view_model( - text_input->view, - TextInputModel * model, - { - model->clear_default_text = true; - }, - true); + text_input->view, TextInputModel * model, { model->clear_default_text = true; }, true); return true; } for(size_t k = 0; k < keyboard_count; k++) { @@ -852,8 +847,10 @@ bool text_input_insert_character(TextInput* text_input, char chr) { model->selected_keyboard = k; model->selected_row = r; model->selected_column = key; - bool shift = (chr == upper) != (model->clear_default_text || strlen(model->text_buffer) == 0); - text_input_handle_ok(text_input, model, shift ? InputTypeLong : InputTypeShort); + bool shift = (chr == upper) != (model->clear_default_text || + strlen(model->text_buffer) == 0); + text_input_handle_ok( + text_input, model, shift ? InputTypeLong : InputTypeShort); }, true); return true;