From 208c28a9829814f8657f0b3c8e1cf6170e0786bb Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Mon, 9 Jan 2017 14:09:40 +0100 Subject: [PATCH] feat(ui/modules/Common/SearchBox): forward event keys --- tests/ui/modules/Common/SearchBox.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/ui/modules/Common/SearchBox.qml b/tests/ui/modules/Common/SearchBox.qml index b7c7a8d0b..496e33a9a 100644 --- a/tests/ui/modules/Common/SearchBox.qml +++ b/tests/ui/modules/Common/SearchBox.qml @@ -105,6 +105,10 @@ Item { launcher: searchField width: searchField.width + // If the menu is focused, the main window loses the active status. + // So It's necessary to map the keys events. + Keys.forwardTo: searchField + onMenuClosed: searchBox.hideMenu() ScrollableListView {