diff options
-rw-r--r-- | mobile-widgets/qml/DiveDetailsEdit.qml | 1 | ||||
-rw-r--r-- | mobile-widgets/qml/HintsTextEdit.qml | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/mobile-widgets/qml/DiveDetailsEdit.qml b/mobile-widgets/qml/DiveDetailsEdit.qml index 796c9a5b4..4192b0e74 100644 --- a/mobile-widgets/qml/DiveDetailsEdit.qml +++ b/mobile-widgets/qml/DiveDetailsEdit.qml @@ -156,6 +156,7 @@ Item { Kirigami.Label { Layout.alignment: Qt.AlignRight text: qsTr("Air Temp:") + font.pointSize: subsurfaceTheme.smallPointSize } TextField { id: txtAirTemp diff --git a/mobile-widgets/qml/HintsTextEdit.qml b/mobile-widgets/qml/HintsTextEdit.qml index 5bf57207f..4ed3b51ab 100644 --- a/mobile-widgets/qml/HintsTextEdit.qml +++ b/mobile-widgets/qml/HintsTextEdit.qml @@ -15,6 +15,7 @@ TextField { textUpdateTimer.restart(); } onFocusChanged: frame.shouldShow = focus + onVisibleChanged: { if (visible) { focus = false @@ -27,6 +28,9 @@ TextField { Keys.onDownPressed: { hintsView.currentIndex++; } + Keys.onReturnPressed: { + focus = false + } Timer { id: textUpdateTimer interval: 300 @@ -107,7 +111,7 @@ TextField { onClicked: { hintsView.currentIndex = index root.text = modelData - frame.shouldShow = false; + root.focus = false; } } ScrollBar.vertical: ScrollBar { } |