Hi,
I’ve been experiencing weird behavior with TextInputVPlay:
I placed a TextInputVPlay item inside a Rectangle with a MouseArea, when the MouseArea is clicked, the method openSoftwareInputPanel() is called (to have a wider area for the user to click to open the input).
I have tested it on Android devices, and everything is working fine, the software keyboard opens when the text box is pressed and when the user presses the enter button on the software keyboard, it closes again. When the user presses on the MouseArea again, the input opens again.
But when the user presses the “back” button on the Android device instead of the enter button on the software keyboard, the keyboard also closes, but then it can’t be opened again by clicking on either the text or my MouseArea.
Here’s my code:
Rectangle {
color: "white"
anchors.fill: parent
anchors.leftMargin: 100
TextInputVPlay {
id: textInput
anchors.horizontalCenter: parent.horizontalCenter
font.pixelSize: 20
anchors.centerIn: parent
color: "black"
text: newGameName
}
MouseArea {
anchors.fill: parent
onClicked: {
textInput.openSoftwareInputPanel()
}
}
}
I have tested this on three different Android devices and the behavior is always the same (Android 2.3.3 and 4.1). Unfortunately i can’t test on iOS right now but those devices don’t have a built-in back button so this shouldn’t be a problem.
Might this be a bug in the TextInputVPlay class?
Cheers, Chrisu