summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/HintsTextEdit.qml
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qml/HintsTextEdit.qml')
-rw-r--r--mobile-widgets/qml/HintsTextEdit.qml8
1 files changed, 6 insertions, 2 deletions
diff --git a/mobile-widgets/qml/HintsTextEdit.qml b/mobile-widgets/qml/HintsTextEdit.qml
index 5bf57207f..ff6dc75cb 100644
--- a/mobile-widgets/qml/HintsTextEdit.qml
+++ b/mobile-widgets/qml/HintsTextEdit.qml
@@ -14,7 +14,8 @@ TextField {
onTextChanged: {
textUpdateTimer.restart();
}
- onFocusChanged: frame.shouldShow = focus
+ onFocusChanged: frame.shouldShow = false
+
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 { }