瀏覽代碼

NFC Maker: Show illegal symbols for WiFi SSID/Password and Emails (#39)

* fix(NFC Maker): Show illegal symbols on keyboard

The text input already has this functionality to show these extra symbols in place of the numbers 0-9 when opening the 'secondary' keyboard. It just wasn't being used.

* Revert "fix(NFC Maker): Show illegal symbols on keyboard"

This reverts commit 5a1898633dbf3695c785270c333603e33ddca3d1.

* Enable illegal symbols for emails and wifi ssid/pass

---------

Co-authored-by: Willy-JL <49810075+Willy-JL@users.noreply.github.com>
Alexander Bays 1 年之前
父節點
當前提交
4e9e45f5cc

+ 2 - 0
nfc_maker/scenes/nfc_maker_scene_contact_mail.c

@@ -28,6 +28,8 @@ void nfc_maker_scene_contact_mail_on_enter(void* context) {
 
     text_input_set_minimum_length(text_input, 0);
 
+    text_input_show_illegal_symbols(text_input, true);
+
     view_dispatcher_switch_to_view(app->view_dispatcher, NfcMakerViewTextInput);
 }
 

+ 2 - 0
nfc_maker/scenes/nfc_maker_scene_mail.c

@@ -26,6 +26,8 @@ void nfc_maker_scene_mail_on_enter(void* context) {
         sizeof(app->mail_buf),
         true);
 
+    text_input_show_illegal_symbols(text_input, true);
+
     view_dispatcher_switch_to_view(app->view_dispatcher, NfcMakerViewTextInput);
 }
 

+ 2 - 0
nfc_maker/scenes/nfc_maker_scene_wifi.c

@@ -26,6 +26,8 @@ void nfc_maker_scene_wifi_on_enter(void* context) {
         sizeof(app->small_buf1),
         true);
 
+    text_input_show_illegal_symbols(text_input, true);
+
     view_dispatcher_switch_to_view(app->view_dispatcher, NfcMakerViewTextInput);
 }
 

+ 2 - 0
nfc_maker/scenes/nfc_maker_scene_wifi_pass.c

@@ -26,6 +26,8 @@ void nfc_maker_scene_wifi_pass_on_enter(void* context) {
         sizeof(app->small_buf2),
         true);
 
+    text_input_show_illegal_symbols(text_input, true);
+
     view_dispatcher_switch_to_view(app->view_dispatcher, NfcMakerViewTextInput);
 }