Author Topic: UIInput issue: touching outside of keyboard fires onSubmit... why?  (Read 5407 times)

VirtuousV

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 1
    • View Profile
We are making a word-based puzzle game for mobile devices, and we have a problem in text input.

When we call a virtual keyboard and touch outside of it, the system fires onSubmit event as if Done/Enter key is pressed and the keyboard collapses. We thought nothing should happen if we touch outside of the keyboard, so this is baffling us a lot.

- We have tested Android phones running Kitkat (Galaxy Note 4) and Jelly Bean (Galaxy S2). Somehow this issue does not happen on desktop Unity.
- We are working with NGUI version 3.6.2.
- We checked an NGUI sample file (Example 12 Chatting) and found even the sample had the exact same issue when compiled into a phone.

I am posting this on behalf of our programmer who doesn't speak English, so please let me know if there is any technical incorrectness that I do not aware of.

Thanks in advance.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIInput issue: touching outside of keyboard fires onSubmit... why?
« Reply #1 on: October 17, 2014, 05:25:16 AM »
It's a Unity thing, I believe. You can check what's happening in UIInput.cs itself, but I'm pretty sure that it's Unity.