Commit 5ee3a9f5 authored by Don Gagne's avatar Don Gagne

Drop focus after virtual keyboard is done

Some android versions leave a focus arrow indicator turd in the
control. This gets rid of it.
parent aaa80e7e
......@@ -26,6 +26,10 @@ QGCTextField {
Qt.ImhFormattedNumbersOnly // Forces use of virtual numeric keyboard
onEditingFinished: {
if (ScreenTools.isMobile) {
// Toss focus on mobile after Done on virtual keyboard. Prevent strange interactions.
focus = false
}
if (typeof qgcView !== 'undefined' && qgcView) {
var errorString = fact.validate(text, false /* convertOnly */)
if (errorString == "") {
......
......@@ -29,6 +29,13 @@ TextField {
implicitHeight: ScreenTools.implicitTextFieldHeight
onEditingFinished: {
if (ScreenTools.isMobile) {
// Toss focus on mobile after Done on virtual keyboard. Prevent strange interactions.
focus = false
}
}
QGCLabel {
id: unitsLabelWidthGenerator
text: unitsLabel
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment