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 {