Author Topic: WINRT Keyboard Not Showing UP Second Time on Clicking on the input box  (Read 2709 times)

mechanicals

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
The Issue is as follows:

1. You click on the Input Box. Touch-Screen Keyboard shows up.
2. Click on the same input box again. Touch-Screen Keyboard goes away.
3. Now if you click on the same input box again. The keyboard doesn't show up.

The OnSelect() event does not get called. When touching the same input again without touching somewhere else.

How do I fix this. Its very critical and urgent.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: WINRT Keyboard Not Showing UP Second Time on Clicking on the input box
« Reply #1 on: November 17, 2014, 09:20:41 AM »
Look inside UIInput and check how what happens on WinRT differs from other platforms. OnSelect(true) is sent when the object gains focus, and OnSelect(false) is sent when it loses it. The keyboard is opened inside UIInput's Update() function on the frame after selection occurs.

Note that input is one of Unity's shortcomings, as you may notice by seeing all those #ifdefs inside that file. Every single one of Unity-supported platforms handles input differently and some things work while others don't.