Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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.