I have a simple Android app that takes input from the user performs a calculation and print out some information. I have LineEdit node with Focus set to All but its still not focusing when the app launch and I need to tap on it to start typing. Is there any way to make it focus so I can start typing right away ? I have a Timer node with a function that opens the virtual keyboard instantly when I open the app but even then I cant start typing without tapping on the LineEdit field.
you should be able to manually grab_focus() of the node.
grab_focus()
Megalomaniak Already tried with it and it doesn't work.
Is the LineEdit inside another Control?
DaveTheCoder Control is at the top then ColorRect is a child of Control then LineEdit is child of ColorRect.
On reflection, I suppose that shouldn't matter.
I noticed that the description of grab_focus() has a note:
Note: Using this method together with Object.call_deferred makes it more reliable, especially when called inside Node._ready.