diff options
-rw-r--r-- | examples/quick/demos/tweetsearch/content/SearchDelegate.qml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/quick/demos/tweetsearch/content/SearchDelegate.qml b/examples/quick/demos/tweetsearch/content/SearchDelegate.qml index cb0e190fe8..669021a582 100644 --- a/examples/quick/demos/tweetsearch/content/SearchDelegate.qml +++ b/examples/quick/demos/tweetsearch/content/SearchDelegate.qml @@ -113,7 +113,11 @@ FlipBar { hint: flipBar.placeHolder focus: flipBar.opened anchors { fill: parent; margins: 6 } - onAccepted: flipBar.ok() + onAccepted: { + if (Qt.inputMethod.visible) + Qt.inputMethod.hide() + flipBar.ok() + } } } } |