InputText Autofocus

Did a search through API can’t seem to find a way or the function Name to Autofocus or activate InputText.

Is there a simple way of doing this?

The input text class does have a focus function

Is that what you were looking for?

1 Like

I can’t get it to work:

Here are two ways to get focus to work:

InputText auto focus | Babylon.js Playground (

You need to render the element at least once in order to get everything ready. In this example I am focusing on the next frame, and also every time you click in the scene.

Hello @charliesideroad just checking in if your question was answered :smiley:

Somehow I found out that you have to add focus after addControl();