Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Detecting TAB key in new UI InputFields

Discussion in 'UGUI & TextMesh Pro' started by Orbcreation, Aug 27, 2014.

  1. Orbcreation

    Orbcreation

    Joined:
    May 4, 2010
    Posts:
    231
    How can I switch between inputfields by using the TAB key and how can I detect which key was used?
    The onSubmit delegate call only gives me the new value, but not the key that was used. I'd like to determine if it was a Tab, Shift-Tab or Enter key.

    From what I understand I am not supposed to use the old Input.GetKey stuff.
     
  2. Melang

    Melang

    Joined:
    Mar 30, 2014
    Posts:
    166
  3. Orbcreation

    Orbcreation

    Joined:
    May 4, 2010
    Posts:
    231
    Thanks Melang, but that script uses the Input.GetKey() method. I was kinda hoping for a solution that only uses the new UI and Event system.