Index: sources/gui/qml/components/TextEntry.qml =================================================================== diff -u -rf7392d985121b21e9f9814e444b0810cd1d00b18 -r840b91f4f72d599bb523050dda2183a6611017b5 --- sources/gui/qml/components/TextEntry.qml (.../TextEntry.qml) (revision f7392d985121b21e9f9814e444b0810cd1d00b18) +++ sources/gui/qml/components/TextEntry.qml (.../TextEntry.qml) (revision 840b91f4f72d599bb523050dda2183a6611017b5) @@ -33,12 +33,21 @@ property alias labelText : _label.text property alias validator : _input.validator property alias labelVisible : _label.visible + property var nextInput : undefined signal enterPressed() width : TextEntry.TextInputWidth height : TextEntry.TextInputHeight + onEnterPressed : { + if (nextInput) { + if (textInput.acceptableInput) { + nextInput.textInput.focus = true + } + } + } + Text { id: _label anchors { left: parent.left @@ -58,7 +67,7 @@ font.pixelSize: Fonts.fontPixelTextRectExtra selectionColor: Colors.borderButtonHalfDarker height: parent.height - width: Variables.textInputLineWidth + width: TextEntry.TextInputLineWidth horizontalAlignment: TextInput.AlignHCenter inputMethodHints: Qt.ImhDigitsOnly selectedTextColor: acceptableInput ? Colors.textMain : Colors.red @@ -77,7 +86,7 @@ Line { id: _line color: Colors.borderButtonHalfDarker - width: Variables.textInputLineWidth + width: TextEntry.TextInputLineWidth anchors { top: _input.bottom left: _input.left