Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

TextMesh Pro [BUG] Hide soft keyboard options automatically deselects the text field

Discussion in 'UGUI & TextMesh Pro' started by Krstn, Oct 26, 2021.

  1. Krstn

    Krstn

    Joined:
    Dec 30, 2012
    Posts:
    27
    Hello

    there's a bug in text mesh pro 3.2.0-pre1 where if on Android, in TMP Input Field the Hide Soft Keyboard is selected, it will immediately deselect the text field upon selection.
    This causes the 'On Deselect' event to be called.
    It seems the LateUpdate code:

    Code (CSharp):
    1. if (m_SoftKeyboard == null || m_SoftKeyboard.status != TouchScreenKeyboard.Status.Visible)
    is missing a check for this flag.

    Text field behaves properly when ran in editor play mode.
     
  2. bigbrainz

    bigbrainz

    Joined:
    Jul 21, 2015
    Posts:
    177
    So I didn't think this was related to our issue, but eventually realized it's absolutely what was causing our problem.

    We happened to have lucked into a method that doesn't trigger it right now, but I really hope they can fix it. But I see it's been two years and no luck, so maybe not. But hopefully!!

    https://forum.unity.com/threads/shouldhidesoftkeyboard-bug-on-ios.1419716/