- Home /
Keyboard on Android only opens for the first time during successive clicks on InputField
In my Unity app I have a TMP_InputField. Clicking on an input field opens the keyboard on my Android device. The problem is that this only works for the first click. If I close the keyboard after entering the text and try to click on the field again the keyboard doesn't show up. I tried debugging some proeprties of input field. This is what I observed.
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);
When the field is created all except inFocus are true.
Once I click the inputField, all are true.
When I enter the text and the keyboard closes, the inFocus field again becomes false.
Now if I click on another field or just somewhere on my scene the inFocus is still false and all other properties are unchanged. But clicking back on the input field now opens the keyboard.
I have been stuck on this for a long time and I am not sure what the issue is. I tried changing the ControlSettings of the field from the editor but no change. Does someone have any idea about this? Any hints or help will be appreciated. Thanks!
Your answer
Follow this Question
Related Questions
How to keep opening of keyboard when focus transferred to another input field by programmatically.? 0 Answers
Unity 5 input field unable to store user input 1 Answer
Input Fields not actually taking in user data on android build 0 Answers
Why Android device need to loose Inputfield focus to listen to others events ? 0 Answers
UI Input fields not working properly in Unity 5 on Android 1 Answer