- Home /
Unity app losses focus when Android keyboard is active through InputField
When I touch InputField it opens the Android Keyboard and it takes the input as characters from keyboard and update my inputField accordingly.
Now when I am done inputting characters the first touch outside Keyboard closes the Keyboard and the second touch let me do the stuff inside unity.
So the question is is there anyway to register the first touch as well and the work inside unityapp with that first touch.
Answer by BISLY · Jul 16, 2020 at 12:34 PM
More than a year Joining the question if anyone knows how to get around this...
Answer by gsshewalkar · Feb 01, 2021 at 02:30 PM
I think there is no definite solution to this yet. Please check: https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnApplicationFocus.html
On Android, when the on-screen keyboard is enabled, it causes an OnApplicationFocus( false ) event. Additionally, if you press Home at the moment the keyboard is enabled, the OnApplicationFocus() event is not called, but OnApplicationPause() is called instead.