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

Build type XAML breaks system keyboard on HL2

Open mgrman opened this issue 6 years ago • 5 comments

Describe the bug

On XAML builds, when unity triggers the system keyboard the app minimizes and another Window opens with a text field and the system keyboard.

To reproduce

Steps to reproduce the behavior:

  1. Build the HandInteractionExamples scene from the MRTK 2.3 release with BuildType XAML
  2. Start the app
  3. Click on input field (on the right side in the canvas)
  4. The app minimizes to shell and another window with input field opens and system keyboard opens
  5. Also upon submiting the edited test the app does not open back up, but crashes.

Expected behavior

System keyboard opens in an overlay on top of the Unity application as when Build Type is Direct3D.

Screenshots

20200612_054651_HoloLens

Your setup (please complete the following information)

  • Unity Version 2019.2.19
  • MRTK Version 2.3

Target platform (please complete the following information)

  • HoloLens 2

Additional context

The build type XAML is intentionally chosen so the app supports https://assetstore.unity.com/packages/tools/gui/3d-webview-for-uwp-hololens-166365 which requires XAML build type.

mgrman avatar Jun 12 '20 12:06 mgrman

Reproducible on Unity 2019.4 and MRTK 2.4, although the app still minimizes and the system keyboard opens for a bit but closes immediatelly.

mgrman avatar Jun 12 '20 13:06 mgrman

This issue still present in MRTK 2.51, building with Unity 2019.4.13 (LTS), Visual Studio 16.7.7, Target/Min SDK platform 10.0.19041.0. I'll see if i find a work-around

olabrahammar avatar Oct 30 '20 10:10 olabrahammar

This is a bug on the Unity side and they are working on a fix to be released in a future version of Unity. I will post back when I learn the fix is shipped.

MaxWang-MS avatar Dec 14 '20 23:12 MaxWang-MS

Hi all! This issue is being reported as fixed by Unity in the upcoming versions: 2021.2 a1 2021.1 b1 2020.2.2 2019.4.19

JBrentJ avatar Jan 27 '21 21:01 JBrentJ

@elbuhofantasma, can you confirm this fix on 2019.4?

polar-kev avatar Jan 28 '21 00:01 polar-kev