Search Unity

Keyboard hides when tap anywhere

Discussion in 'UGUI & TextMesh Pro' started by igor_rst, Nov 27, 2019.

  1. igor_rst

    igor_rst

    Joined:
    Apr 20, 2017
    Posts:
    40
    I'm use TMP Input field on Android.
    There are inputfield and some buttons in my UI. When I begin input text, keyboard shows, but when I tap on button, keyboard hides. And I must tap one more time to execute button method. How can I fix it?

    I want to tap on my UI buttons without keyboard hiding
     
    Ardito92ITA likes this.
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    I need to check with the Android platform folks at Unity as this behavior is outside of the control of TMP.
     
  3. igor_rst

    igor_rst

    Joined:
    Apr 20, 2017
    Posts:
    40
    Ok, thx, I guess on iOS it will be the same, check it later.

    BTW, as one of decision of this problem I can set up "hide soft keyboard" and control show/hide by myself. But, it is not good variant.
     
  4. igor_rst

    igor_rst

    Joined:
    Apr 20, 2017
    Posts:
    40
    No, it doesn't work too. First hides keyboard, after, can tap on button. Yeah, it's not TMP trouble..
     
  5. igor_rst

    igor_rst

    Joined:
    Apr 20, 2017
    Posts:
    40
    Any news?
     
  6. igor_rst

    igor_rst

    Joined:
    Apr 20, 2017
    Posts:
    40
    So, will it work correctly?
     
  7. rainandgames

    rainandgames

    Joined:
    Aug 6, 2018
    Posts:
    12
    I'm waiting for a solution for this as well.

    I'd like some way to keep an inputfield focused and the soft keyboard open while tapping buttons and scrolling a scroll view. This is how all chat clients work on android, surely it would be useful for unity to have a way to accomplish this?

    I've also noticed the chat system in Hearthstone on Android (a popular unity app) has this functionality. There must be some way!
     
  8. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    I would suggest submitting a bug report / feature request on this. I certainly agree that having the mobile keyboard constantly show / hide as focus changes isn't ideal.
     
  9. rainandgames

    rainandgames

    Joined:
    Aug 6, 2018
    Posts:
    12
    Thank you for the response Stephan_B! Will do.
     
  10. okamoto_tomoyuki

    okamoto_tomoyuki

    Joined:
    Jan 20, 2015
    Posts:
    22
    We are also facing this keyboard issue.
    Are there any plans to fix it so that the keyboard is always visible?
     
  11. AlekseevAV

    AlekseevAV

    Joined:
    Jul 20, 2017
    Posts:
    6
    @Stephan_B Hello,

    I'm making a chat too, and this problem is really bad.

    Is there any progress?
    Do you have a link for the bug report/feature request?
     
  12. Anh-Pham

    Anh-Pham

    Joined:
    Feb 7, 2012
    Posts:
    35
    Hello, any update here?
     
  13. kbomg

    kbomg

    Joined:
    Jan 14, 2021
    Posts:
    4
    @Stephan_B HelIo,

    I also have problem with this.
    Do you have a link for the bug report/feature request?
     
  14. kbomg

    kbomg

    Joined:
    Jan 14, 2021
    Posts:
    4
  15. seancheno

    seancheno

    Joined:
    Mar 16, 2021
    Posts:
    7
    Bumping this and the other thread as well. This is a severe issue preventing many including our team from creating a respectable/professional app that relies on messaging.
     
  16. igor_rst

    igor_rst

    Joined:
    Apr 20, 2017
    Posts:
    40
  17. seancheno

    seancheno

    Joined:
    Mar 16, 2021
    Posts:
    7
    igor_rst likes this.
  18. AlfSgio

    AlfSgio

    Joined:
    Oct 11, 2020
    Posts:
    7
  19. nareshbishtasus

    nareshbishtasus

    Joined:
    Jun 11, 2018
    Posts:
    36
    Same here. Please resolve this.
     
  20. pktony2011

    pktony2011

    Joined:
    Jul 15, 2020
    Posts:
    2