Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

keeping the keyboard always open?

Discussion in 'UGUI & TextMesh Pro' started by nimrodbens, Sep 1, 2020.

  1. nimrodbens

    nimrodbens

    Joined:
    Feb 14, 2018
    Posts:
    6
    i'm building a crossword app so i have a grid view with multiple `InputField`s.

    i want the user to navigate freely between them so i have some listeners when a user enters a letter it will automatically go to the next appropriate `InputField`.

    in that scenario the previous input field loses focus and it closes the keyboard and then reopens in when the next input field is activated.

    is there any way to prevent it? to keep the keyboard open always?

    also is there a way to prevent the keyboard from closing when tapping anywhere outside it?

    for now i tested it on android and this is the behavior.

    thank you all
     
  2. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,588
    This is an Android behavior which is outside of the control of TMP.

    I do have a query into the Android team at Unity to see if we can change that behavior.
     
  3. nimrodbens

    nimrodbens

    Joined:
    Feb 14, 2018
    Posts:
    6
    hey, thanks for the reply.

    i just created an empty android project and placed 3 random edit texts in it not in any specific order and when switching focus between them (tapping them) the keyboard stays on screen. and it also didn't close if i tapped anywhere else on the screen.

    it seems that no matter what in unity if you press outside of the keyboard it will close. no matter if you tap a input field or anything else.
     
  4. nimrodbens

    nimrodbens

    Joined:
    Feb 14, 2018
    Posts:
    6
    i ended up implementing my own custom keyboard. the keyboard in unity is quite a mess for this kind of scenario.
     
    dnrkckzk2 likes this.