Author Topic: UIInput - password field ignore first character keypress on Keyboard  (Read 7592 times)

yong

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 7
    • View Profile
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  :)


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIInput - password field ignore first character keypress on Keyboard
« Reply #1 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.

yong

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: UIInput - password field ignore first character keypress on Keyboard
« Reply #2 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!

yong

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: UIInput - password field ignore first character keypress on Keyboard
« Reply #3 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 :'(

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIInput - password field ignore first character keypress on Keyboard
« Reply #4 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.

yong

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: UIInput - password field ignore first character keypress on Keyboard
« Reply #5 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.


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIInput - password field ignore first character keypress on Keyboard
« Reply #6 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".

yong

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: UIInput - password field ignore first character keypress on Keyboard
« Reply #7 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!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIInput - password field ignore first character keypress on Keyboard
« Reply #8 on: June 18, 2014, 03:35:22 PM »
I do releases on Friday night.