Search Unity

Bug UI ToolKit Display Keyboad, after TouchScreenKeyboad.Open() not expected Keyboad type.

Discussion in 'UI Toolkit' started by gtk2k, Feb 4, 2024.

  1. gtk2k

    gtk2k

    Joined:
    Aug 13, 2014
    Posts:
    288
    Unity 2022.3.15f1
    Buid Machine: Apple M1 Max Sonoma 14.4
    *Application Target Device
    Device: iPhone 12 Pro
    OS: iOS 17.2.1
    I'm developing a mobile application.
    I implemented the first login screen using UI Toolkit.
    The login screen has two TextFields: "UserId" and "Password".
    Password TextField has Password flag set to True (checkbox turned on) and Keyboard Type set to ASCIICapauble.
    Since the keyboard is used within the application, the TouchScreenKeyboad static class is used to display it.
    The problem here is that after entering the password on the login screen and logging in, the keyboard is displayed by executing the TouchScreenKeyboad.Open() method within the application with TouchScreenKeyboadType and secure flag set to false as shown below. However,
    Code (CSharp):
    1. TouchScreenKeyboard.Open('foo', TouchScreenKeyboardType.Default, false, false, false);
    Even so, the keyboard that is displayed is the one for entering passwords.
    How can I use TouchScreenKeyboad.Open() to display the (default) text input keyboard after entering a password?