Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: yong on June 09, 2014, 06:18:29 PM

Title: UIInput - password field ignore first character keypress on Keyboard
Post by: yong on June 09, 2014, 06:18:29 PM
Hello,

I'm using NGUI v.3.6.1 and it seems like UIInput's password field ignores the very first touch screen keyboard keypress.

This only happens on iOS devices(tested on iPad Air and iPad 3 with iOS 7). However, I could not reproduce this bug on Android devices.

Is this already known issue or I'm the only one who's getting this?

Thanks  :)

Title: Re: UIInput - password field ignore first character keypress on Keyboard
Post by: ArenMook on June 10, 2014, 02:38:42 AM
I'm guessing its more than just input fields, but other forms of input as well -- buttons etc? Likely some event is not sent by Unity.
Title: Re: UIInput - password field ignore first character keypress on Keyboard
Post by: yong on June 12, 2014, 12:18:30 PM
Thanks for the fast response!

Strangely, it only happens on password field. Please let me know if there's any further information about this.

Thanks and have a great day!
Title: Re: UIInput - password field ignore first character keypress on Keyboard
Post by: yong on June 13, 2014, 02:38:55 PM
FYI, I upgraded NGUI to 3.6.3 and unity's version to 4.5.1 and still no luck on this :'(
Title: Re: UIInput - password field ignore first character keypress on Keyboard
Post by: ArenMook on June 13, 2014, 09:51:47 PM
What's are your UIInput's settings? There is no difference in handling between iOS and Android on NGUI's side.
Title: Re: UIInput - password field ignore first character keypress on Keyboard
Post by: yong on June 16, 2014, 10:46:31 AM
Hello Arren

The following attachment is my setup to input.

I actually did some further investigation and there are two different types of problem

1) Password field ignores first keystroke
Ignoring the very first keystroke problem happens on password field where KeyboardType is set as HiddenInput; if we use default KeyboardType, it doesn't happen anymore.

2) Upon clicking on any input fields it loses focus right away
I have confirmed that UIInput's OnSelect(false) gets invoked when it loses focus.

Again, these problem only happen only in iOS :(

Thanks and have a great day.

Title: Re: UIInput - password field ignore first character keypress on Keyboard
Post by: ArenMook on June 17, 2014, 10:58:11 AM
I've investigated #2 and found a solution yesterday (it overlapped with WP8 fixes). As for #1, probably best to force the on-screen input to show up when it's set to "password".
Title: Re: UIInput - password field ignore first character keypress on Keyboard
Post by: yong on June 17, 2014, 02:58:40 PM
Woohoo!
Thank you very much for the fix and suggestions. :) :) :)
When is this going to be release? I'm excited already!

Have a great day!
Title: Re: UIInput - password field ignore first character keypress on Keyboard
Post by: ArenMook on June 18, 2014, 03:35:22 PM
I do releases on Friday night.