Can't Navigate Via Keyboard

I have dropped four text input fields on a canvas. I have set their Navigation to Horizontal. When run I cannot use the keyboard to navigate between the fields. I have tried tab and the arrow keys. I want to be able to tab between them as I input. What am I possibly doing wrong?

Having the same issue here, bump!

I recently figured out a quick fix for this issue, in the EventSystem object you need to set the First Selected variable. Just drag the button that you’d like to be focused on first into the field.

If your menu has multiple panels, you’ll need to tell the EventSystem what GameObject to select inside the OnClick() Inspector panel for the button that initiates the panel switch. E.g. If you have a panel with Start, Options, & Quit and the Options are contained within a different panel, you’ll need to put this on the Options button (and then do the same thing on the button that sends you back to the first panel).

I’m sure there’s an easier and less hacky way to do it inside scripting, but this workaround works for me right now.

1 Like

@closetgeekshow I tried what you suggested, but I am still not able to navigate between text boxes. Thanks for the suggestion though.

Darn, I guess that only works with buttons (and sliders too), I hadn’t thought about text boxes at all.

Found another post on the forum that addresses this, look here for the script.

note: ln 37 and 38 didn’t work for me, but it worked by commenting out ln 37 and changing 38 to: “system.SetSelectedGameObject(system.firstSelectedGameObject);”

@closetgeekshow Thanks. I think the key thing is Tab between input fields is not supported out of the box.