Skip to content

Commit

Permalink
On escape pressed of unified search placeholder view, diable activeSe…
Browse files Browse the repository at this point in the history
…archFocus

Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra authored and mgallien committed Nov 21, 2024
1 parent e8eb8ad commit baedf15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/tray/MainWindow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit baedf15

Please sign in to comment.