diff options
Diffstat (limited to 'mobile-widgets/qml/HintsTextEdit.qml')
-rw-r--r-- | mobile-widgets/qml/HintsTextEdit.qml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mobile-widgets/qml/HintsTextEdit.qml b/mobile-widgets/qml/HintsTextEdit.qml index fb9cee417..508c83907 100644 --- a/mobile-widgets/qml/HintsTextEdit.qml +++ b/mobile-widgets/qml/HintsTextEdit.qml @@ -13,7 +13,13 @@ TextField { onTextChanged: { textUpdateTimer.restart(); } - Keys.onPressed: frame.shouldShow = !frame.shouldShow + onFocusChanged: frame.shouldShow = focus + onVisibleChanged: { + if (visible) { + focus = false + frame.shouldShow = false + } + } Keys.onUpPressed: { hintsView.currentIndex--; } |