MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

Keyboard disappearing all of a sudden

Open Spoon2311 opened this issue 5 years ago • 13 comments

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.

Spoon2311 avatar Aug 30 '21 16:08 Spoon2311

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

koudic avatar Aug 30 '21 16:08 koudic

@MaxWang-MS This sounds similar to a bug you were talking to me about last week. Is it?

keveleigh avatar Aug 30 '21 16:08 keveleigh

This is a Unity bug and is tracked here: https://issuetracker.unity3d.com/product/unity/issues/guid/1360514/

MaxWang-MS avatar Aug 30 '21 18:08 MaxWang-MS

@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?

Spoon2311 avatar Aug 30 '21 19:08 Spoon2311

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.

MaxWang-MS avatar Aug 30 '21 19:08 MaxWang-MS

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)

Patchnotes for 2019.4.31 and 2020.3.19

YisharPixelsHub avatar Oct 20 '21 13:10 YisharPixelsHub

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 avatar Nov 16 '21 06:11 yeongjuBae

@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 avatar Nov 24 '21 15:11 YisharPixelsHub

@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.

yeongjuBae avatar Nov 25 '21 00:11 yeongjuBae

Hi @yeongjuBae, please reach out to Unity directly as this is a Unity bug and thus beyond our control.

MaxWang-MS avatar Nov 25 '21 01:11 MaxWang-MS

I still have this problem with Unity 2020.3.20f1

MilanPolle avatar Dec 13 '21 16:12 MilanPolle

@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 avatar Dec 14 '21 04:12 MaxWang-MS

@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.

MilanPolle avatar Dec 14 '21 08:12 MilanPolle