Skip to content

Commit

Permalink
TextInput illegal symbols refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Oct 29, 2024
1 parent da86546 commit d0300c7
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion cli_bridge/cligui_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down
2 changes: 1 addition & 1 deletion magspoof/scenes/mag_scene_input_value.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion mayhem_marauder/scenes/wifi_marauder_scene_user_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion mayhem_morseflash/scenes/uart_terminal_scene_text_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion nfc_maker/scenes/nfc_maker_scene_contact_url.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion nfc_maker/scenes/nfc_maker_scene_https.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion nfc_maker/scenes/nfc_maker_scene_text.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion nfc_maker/scenes/nfc_maker_scene_url.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion uart_terminal/scenes/uart_terminal_scene_text_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d0300c7

Please sign in to comment.