Search Unity

InputField and Tabs

Discussion in 'UGUI & TextMesh Pro' started by nventimiglia, Aug 22, 2014.

  1. nventimiglia

    nventimiglia

    Joined:
    Sep 20, 2011
    Posts:
    153
    I noticed that the input field consumes the tab key. The expected behavior would be to select the next control not to insert a tab character. Is there any built in way to outlaw the tab key ?
     
    JonasJSK and rakkarage like this.
  2. nventimiglia

    nventimiglia

    Joined:
    Sep 20, 2011
    Posts:
    153
    While am at it, how would I go about selecting a control via script ? My current hack is not working as expected.


    EventSystemManager.currentSystem.SetSelectedGameObject(TabTarget, new BaseEventData(EventSystemManager.currentSystem));
     
  3. bdominguezvw

    bdominguezvw

    Joined:
    Dec 4, 2013
    Posts:
    96
    Same problem here. I want to focus an InputField through code.
     
  4. Thiago-Crawford

    Thiago-Crawford

    Joined:
    Jan 7, 2013
    Posts:
    92
    @bdominguezvw Me too, just made a thread about that..
     
  5. bdominguezvw

    bdominguezvw

    Joined:
    Dec 4, 2013
    Posts:
    96