Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: mechanicals on November 17, 2014, 02:43:16 AM

Title: WINRT Keyboard Not Showing UP Second Time on Clicking on the input box
Post by: mechanicals on November 17, 2014, 02:43:16 AM
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.
Title: Re: WINRT Keyboard Not Showing UP Second Time on Clicking on the input box
Post by: ArenMook 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.