From baedf1502e08bce579b5d01f679cc42599066287 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Tue, 19 Nov 2024 14:02:00 +0800 Subject: [PATCH] On escape pressed of unified search placeholder view, diable activeSearchFocus Signed-off-by: Claudio Cambra --- src/gui/tray/MainWindow.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/tray/MainWindow.qml b/src/gui/tray/MainWindow.qml index df558f0d17423..d3d096038138f 100644 --- a/src/gui/tray/MainWindow.qml +++ b/src/gui/tray/MainWindow.qml @@ -270,6 +270,7 @@ ApplicationWindow { onTextEdited: { UserModel.currentUser.unifiedSearchResultsListModel.searchTerm = trayWindowUnifiedSearchInputContainer.text } onClearText: { UserModel.currentUser.unifiedSearchResultsListModel.searchTerm = "" } onActiveFocusChanged: activateSearchFocus = activeFocus && focusReason !== Qt.TabFocusReason && focusReason !== Qt.BacktabFocusReason + Keys.onEscapePressed: activateSearchFocus = false } Rectangle {