Hello. I'm building a custom screen that fires before maim menu. Everything is perfect except when the game is opened on android.
The input on the screen is always focused and the keyboard is always showing. The caret is always present in the input
If a user presses "enter" on the android keyboard, nothing happens and keyboard stays on the screen
If a user presses "back" button on android , the keyboard disappears and then re-appears in less than a second.
This behaviour is not good, but currently I don't know how to fix it.
Can anyone more experienced help?
Can the input be binded to the button on "enter" somehow?
This is my current code:
The input on the screen is always focused and the keyboard is always showing. The caret is always present in the input
If a user presses "enter" on the android keyboard, nothing happens and keyboard stays on the screen
If a user presses "back" button on android , the keyboard disappears and then re-appears in less than a second.
This behaviour is not good, but currently I don't know how to fix it.
Can anyone more experienced help?
Can the input be binded to the button on "enter" somehow?
This is my current code:
Code:
screen hhh(ffff):
frame:
align (0.5, 0.01)
xpadding(10)
ypadding(10)
vbox:
text"Welcome!"
frame:
align (0.5, 0.5)
xpadding(10)
ypadding(10)
vbox:
input default "":
value VariableInputValue("ffff")
copypaste True
length 30
frame:
align (0.5, 0.6)
xpadding(10)
ypadding(10)
vbox:
textbutton "Enter!":
action [Function(o)]
Last edited: