From a6b5f410351237d859565d1b727e943daa5b5557 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Tue, 16 May 2017 17:43:15 +0200 Subject: [PATCH] fix(ui/modules/Common/Form/SearchBox): handle click outside menu --- linphone-desktop/ui/modules/Common/Form/SearchBox.qml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/linphone-desktop/ui/modules/Common/Form/SearchBox.qml b/linphone-desktop/ui/modules/Common/Form/SearchBox.qml index 5c004881c..4948eff78 100644 --- a/linphone-desktop/ui/modules/Common/Form/SearchBox.qml +++ b/linphone-desktop/ui/modules/Common/Form/SearchBox.qml @@ -96,6 +96,13 @@ Item { } onTextChanged: _filter(text) + + InvertedMouseArea { + anchors.fill: parent + enabled: searchBox._isOpen + + onPressed: searchBox.closeMenu() + } } // -------------------------------------------------------------------------