Keyboard disappearing all of a sudden
Describe the bug
We are using TMPInputs for our users to input some notes. When pressing into the input field the keyboard pops up.
But while tipping it can happen that all of a sudden the keyboard disappears again, sometimes after like 2 seconds, sometimes after 15seconds. Although no closing action is executed.
To reproduce
Steps to reproduce the behavior:
Add a TMPInput field onto a panel in a unity scene. Build the application. Select the input field and check if the keyboard appears and remains until you close it.
Expected behavior
I'd expect the keyboard to remain visible until we close it using the 'x' on the top right.
Screenshots
https://user-images.githubusercontent.com/59868550/131374281-99d2b8b8-6d13-492b-a20f-045efd67e67c.mp4
Your setup (please complete the following information)
- Unity Version [2020.3.16f1]
- MRTK Version [2.7.2]
- OpenXR
Target platform (please complete the following information)
- HoloLens 2
Additional context
Add any other context about the problem here.
Have been seeing the same problem in my application. Sometimes the keyboard just disappears without any input, even if I have my hands out of the FOV
@MaxWang-MS This sounds similar to a bug you were talking to me about last week. Is it?
This is a Unity bug and is tracked here: https://issuetracker.unity3d.com/product/unity/issues/guid/1360514/
@MaxWang-MS Meaning we'll have to wait until Unity fixes the issue? Is there not possibly something that could be changed on the MRTK side?
You will have to wait for Unity to fix the bug as the code with bug is in Unity's engine (not even in the TMP package). Meanwhile you can try to rollback to a previous version (given Unity's comment that this seems to be related to one of their recent fixes) or upvote on the issue. The TMP input field and the touch screen keyboard are all implemented by Unity.
Looks fixed in Unity 2020.3.19+ and 2019.4.31 (I tested it in 2020.3.20)
Universal Windows Platform: Fixed a race-condition when using TouchScreenKeyboard's "text" or "selection" properties immediately after calling Open. (1345877) Universal Windows Platform: Fixed TouchScreenKeyboard on HoloLens2 closing a few seconds after focusing a TextMeshPro input field (1360514)
Hello? I'm using Unity 2021.1.12 version. Can't you fix it? Currently, the version with this issue resolved is not available because the package manager has not been called normally.
@yeongjuBae For Unity 2021.1.x is fixed in version 2021.1.22 (Patchnotes).
There is no mention of the issue in patchnotes for Unity 2021.2.x or 2022.x, maybe it was fixed in the first release already, or still to be deployed.
@YisharPixelsHub Thank you for leaving comments. However, it is currently unavailable due to issues that the package manager has not been called normally since 2021.1.22. Just in case, the version we are using is Unity 2021.1.12, so we requested that it was patched to this version.
Hi @yeongjuBae, please reach out to Unity directly as this is a Unity bug and thus beyond our control.
I still have this problem with Unity 2020.3.20f1
@MilanPolle Given Unity has resolved the issue and both us and the community have validated the fix, the issue you are facing is likely to be a different one. Please consider filing a new bug report to Unity and/or open a new issue here and provide us with more information.
@MaxWang-MS Thank you for your reply. The behavior is very similar to what is being reported here, it often either closes right away, or while you are typing. I also noticed tapping outside the keyboard closes it and haven't found a way to turn this behavior off.
I'll gather some more information about this problem and create a new ticket for it.