How to set focus on a text input?

I have a TextInput inside of a Window.

How can I set focus on the TextInput so that the user doesn't have to click on on it first before typing? I've done this is Flash, but things are different now :slight_smile:

const t = new TextInput({color:white})
new Window().center().add(t);
t.focus = true;
2 Likes

For some reason, the cursor is not showing up at start but you can type there...

Thanks!

Too bad about the cursor, but it might be ok anyway!

We can look into it...

1 Like

The cursor should show now in ZIM 017. Cheers.

1 Like