Browse Source

Select all when focused

QGC4.4
Don Gagne 10 years ago
parent
commit
c7dd080e39
  1. 6
      src/QmlControls/QGCTextField.qml

6
src/QmlControls/QGCTextField.qml

@ -60,4 +60,10 @@ TextField { @@ -60,4 +60,10 @@ TextField {
padding.right: control.showUnits ? unitsLabelWidthGenerator.width : control.__contentHeight/3
}
onActiveFocusChanged: {
if (activeFocus) {
selectAll()
}
}
}

Loading…
Cancel
Save