diff options
Diffstat (limited to 'mobile-widgets/qml/HintsTextEdit.qml')
-rw-r--r-- | mobile-widgets/qml/HintsTextEdit.qml | 6 |
1 files changed, 5 insertions, 1 deletions
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 { } |