From d0300c7a5a353ba0c73030c81afc75ec440797e6 Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Tue, 29 Oct 2024 22:07:43 +0000 Subject: [PATCH] TextInput illegal symbols refactor --- cli_bridge/cligui_main.c | 2 +- magspoof/scenes/mag_scene_input_value.c | 2 +- mayhem_marauder/scenes/wifi_marauder_scene_user_input.c | 2 +- mayhem_morseflash/scenes/uart_terminal_scene_text_input.c | 2 +- nfc_maker/scenes/nfc_maker_scene_contact_url.c | 2 +- nfc_maker/scenes/nfc_maker_scene_https.c | 2 +- nfc_maker/scenes/nfc_maker_scene_text.c | 2 +- nfc_maker/scenes/nfc_maker_scene_url.c | 2 +- uart_terminal/scenes/uart_terminal_scene_text_input.c | 2 +- wifi_marauder_companion/scenes/wifi_marauder_scene_text_input.c | 2 +- wifi_marauder_companion/scenes/wifi_marauder_scene_user_input.c | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/cli_bridge/cligui_main.c b/cli_bridge/cligui_main.c index 3ec92927c..33b47969e 100644 --- a/cli_bridge/cligui_main.c +++ b/cli_bridge/cligui_main.c @@ -104,7 +104,7 @@ int32_t cligui_main(void* p) { cligui->text_input_store, TEXT_INPUT_STORE_SIZE, true); - text_input_add_illegal_symbols(cligui->text_input); + text_input_show_illegal_symbols(cligui->text_input, true); view_dispatcher_add_view( cligui->view_dispatcher, ViewTextInput, text_input_get_view(cligui->text_input)); diff --git a/magspoof/scenes/mag_scene_input_value.c b/magspoof/scenes/mag_scene_input_value.c index 77adcb306..f2ece3d4b 100644 --- a/magspoof/scenes/mag_scene_input_value.c +++ b/magspoof/scenes/mag_scene_input_value.c @@ -11,7 +11,7 @@ void mag_scene_input_value_on_enter(void* context) { text_input_set_result_callback( text_input, mag_text_input_callback, mag, mag->text_store, MAG_TEXT_STORE_SIZE, true); - text_input_add_illegal_symbols(text_input); + text_input_show_illegal_symbols(text_input, true); view_dispatcher_switch_to_view(mag->view_dispatcher, MagViewTextInput); } diff --git a/mayhem_marauder/scenes/wifi_marauder_scene_user_input.c b/mayhem_marauder/scenes/wifi_marauder_scene_user_input.c index 856ebeb2c..3d241bb04 100644 --- a/mayhem_marauder/scenes/wifi_marauder_scene_user_input.c +++ b/mayhem_marauder/scenes/wifi_marauder_scene_user_input.c @@ -108,7 +108,7 @@ void wifi_marauder_scene_user_input_on_enter(void* context) { *app->user_input_string_reference, strlen(*app->user_input_string_reference) + 1); } - text_input_add_illegal_symbols(app->text_input); + text_input_show_illegal_symbols(app->text_input, true); break; // Loads the numerical value of the reference case WifiMarauderUserInputTypeNumber: diff --git a/mayhem_morseflash/scenes/uart_terminal_scene_text_input.c b/mayhem_morseflash/scenes/uart_terminal_scene_text_input.c index fd33aee78..2c39bae0e 100644 --- a/mayhem_morseflash/scenes/uart_terminal_scene_text_input.c +++ b/mayhem_morseflash/scenes/uart_terminal_scene_text_input.c @@ -34,7 +34,7 @@ void uart_terminal_scene_text_input_on_enter(void* context) { UART_TERMINAL_TEXT_INPUT_STORE_SIZE, false); - text_input_add_illegal_symbols(text_input); + text_input_show_illegal_symbols(text_input, true); view_dispatcher_switch_to_view(app->view_dispatcher, UART_TerminalAppViewTextInput); } diff --git a/nfc_maker/scenes/nfc_maker_scene_contact_url.c b/nfc_maker/scenes/nfc_maker_scene_contact_url.c index bbe15d9de..1bdcd0010 100644 --- a/nfc_maker/scenes/nfc_maker_scene_contact_url.c +++ b/nfc_maker/scenes/nfc_maker_scene_contact_url.c @@ -28,7 +28,7 @@ void nfc_maker_scene_contact_url_on_enter(void* context) { text_input_set_minimum_length(text_input, 0); - text_input_add_illegal_symbols(text_input); + text_input_show_illegal_symbols(text_input, true); view_dispatcher_switch_to_view(app->view_dispatcher, NfcMakerViewTextInput); } diff --git a/nfc_maker/scenes/nfc_maker_scene_https.c b/nfc_maker/scenes/nfc_maker_scene_https.c index 1d200ab63..b3d0b1c69 100644 --- a/nfc_maker/scenes/nfc_maker_scene_https.c +++ b/nfc_maker/scenes/nfc_maker_scene_https.c @@ -26,7 +26,7 @@ void nfc_maker_scene_https_on_enter(void* context) { BIG_INPUT_LEN, true); - text_input_add_illegal_symbols(text_input); + text_input_show_illegal_symbols(text_input, true); view_dispatcher_switch_to_view(app->view_dispatcher, NfcMakerViewTextInput); } diff --git a/nfc_maker/scenes/nfc_maker_scene_text.c b/nfc_maker/scenes/nfc_maker_scene_text.c index b10070cdd..f374e10ae 100644 --- a/nfc_maker/scenes/nfc_maker_scene_text.c +++ b/nfc_maker/scenes/nfc_maker_scene_text.c @@ -26,7 +26,7 @@ void nfc_maker_scene_text_on_enter(void* context) { BIG_INPUT_LEN, true); - text_input_add_illegal_symbols(text_input); + text_input_show_illegal_symbols(text_input, true); view_dispatcher_switch_to_view(app->view_dispatcher, NfcMakerViewTextInput); } diff --git a/nfc_maker/scenes/nfc_maker_scene_url.c b/nfc_maker/scenes/nfc_maker_scene_url.c index bfcc6cc52..9a452e556 100644 --- a/nfc_maker/scenes/nfc_maker_scene_url.c +++ b/nfc_maker/scenes/nfc_maker_scene_url.c @@ -26,7 +26,7 @@ void nfc_maker_scene_url_on_enter(void* context) { BIG_INPUT_LEN, true); - text_input_add_illegal_symbols(text_input); + text_input_show_illegal_symbols(text_input, true); view_dispatcher_switch_to_view(app->view_dispatcher, NfcMakerViewTextInput); } diff --git a/uart_terminal/scenes/uart_terminal_scene_text_input.c b/uart_terminal/scenes/uart_terminal_scene_text_input.c index 8244b8390..ae1c70d4b 100644 --- a/uart_terminal/scenes/uart_terminal_scene_text_input.c +++ b/uart_terminal/scenes/uart_terminal_scene_text_input.c @@ -43,7 +43,7 @@ void uart_terminal_scene_text_input_on_enter(void* context) { UART_TERMINAL_TEXT_INPUT_STORE_SIZE, false); - text_input_add_illegal_symbols(text_input); + text_input_show_illegal_symbols(text_input, true); view_dispatcher_switch_to_view(app->view_dispatcher, UART_TerminalAppViewTextInput); } diff --git a/wifi_marauder_companion/scenes/wifi_marauder_scene_text_input.c b/wifi_marauder_companion/scenes/wifi_marauder_scene_text_input.c index 185af727e..f3096fd13 100644 --- a/wifi_marauder_companion/scenes/wifi_marauder_scene_text_input.c +++ b/wifi_marauder_companion/scenes/wifi_marauder_scene_text_input.c @@ -69,7 +69,7 @@ void wifi_marauder_scene_text_input_on_enter(void* context) { WIFI_MARAUDER_TEXT_INPUT_STORE_SIZE, false); - text_input_add_illegal_symbols(text_input); + text_input_show_illegal_symbols(text_input, true); view_dispatcher_switch_to_view(app->view_dispatcher, WifiMarauderAppViewTextInput); } diff --git a/wifi_marauder_companion/scenes/wifi_marauder_scene_user_input.c b/wifi_marauder_companion/scenes/wifi_marauder_scene_user_input.c index aa3fbda85..e6578c243 100644 --- a/wifi_marauder_companion/scenes/wifi_marauder_scene_user_input.c +++ b/wifi_marauder_companion/scenes/wifi_marauder_scene_user_input.c @@ -108,7 +108,7 @@ void wifi_marauder_scene_user_input_on_enter(void* context) { *app->user_input_string_reference, strlen(*app->user_input_string_reference) + 1); } - text_input_add_illegal_symbols(app->text_input); + text_input_show_illegal_symbols(app->text_input, true); break; // Loads the numerical value of the reference case WifiMarauderUserInputTypeNumber: