소스 검색

TextInput illegal symbols refactor

Willy-JL 1 년 전
부모
커밋
d0300c7a5a

+ 1 - 1
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));
 

+ 1 - 1
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);
 }

+ 1 - 1
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:

+ 1 - 1
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);
 }

+ 1 - 1
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);
 }

+ 1 - 1
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);
 }

+ 1 - 1
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);
 }

+ 1 - 1
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);
 }

+ 1 - 1
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);
 }

+ 1 - 1
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);
 }

+ 1 - 1
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: