I have one in my Unity app
TMP_InputField, Clicking an input field opens the keyboard on my Android device. The problem is that this only works on the first click. When I close the keyboard after entering text and try to click the field again, the keyboard does not appear.
However, it works if I click somewhere else and then click the box again. I thought this could be due to some focus or selection states of the InputField, so I tried to fix bugs. I saw that.
Debug.Log("Activated = " + inputField.IsActive()); Debug.Log("Interactable = " + inputField.interactable); Debug.Log("InFocus = " + inputField.isFocused); Debug.Log("Enabled = " + inputField.enabled); Debug.Log("ActiveEnabled = " + inputField.isActiveAndEnabled);
I tried to log these properties of the field. When the field is created, all except
true, As soon as I click on the input field, all are
When I enter the text and the keyboard is closed, the inFocus field is wrong again. Now when I click on another field or just anywhere on my scene
inFocus is still wrong and all other properties remain unchanged. Clicking back into the input field now opens the keyboard.
I've been around for a long time and I'm not sure what it's about. I tried to change the ControlSettings of the field in the editor, but no change.
Does anyone have any idea of this? Any pointers or help will be appreciated. Thanks a lot!