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

TextMesh Pro TMpro Input Field - "On End Edit" event and TAB

Discussion in 'UGUI & TextMesh Pro' started by MrSkiz, Sep 11, 2017.

  1. MrSkiz

    MrSkiz

    Joined:
    Jul 4, 2012
    Posts:
    4
    Hi all,

    Is there a way to add the TAB keypress to the list(?) of keys that trigger the "On End Edit" event on a TextMesh Pro Input Field?
    I want to emulate the behavior of a html form where pressing TAB focuses on the next input field.

    I'd be delighted if TMPro fully supported InputField navigation via TAB and SHIFT+TAB though :)

    Thanks.
     
  2. fherbst

    fherbst

    Joined:
    Jun 24, 2012
    Posts:
    802
    I have the same problem and question. The InputField doesn't behave like a web text input field, which is weird.
    Any news about this?
     
  3. ddadkhah

    ddadkhah

    Joined:
    Nov 6, 2017
    Posts:
    59
    Create a script with a methos funct(string s) and connect On Change value of text mesh pro. in this function check that the s EndsWith("\r"). If true do whatever you want