fix: users search field clears on 'x' button or 'escape' key clicked (#1920)

This commit is contained in:
MrMirDan
2025-11-26 05:57:28 +02:00
committed by GitHub
parent eb7d031c7d
commit c7221832e0

View File

@@ -566,6 +566,7 @@ PageType {
textField.placeholderText: qsTr("Search")
Keys.onEscapePressed: {
searchTextField.textField.text = ""
root.isSearchBarVisible = false
}
@@ -586,6 +587,7 @@ PageType {
imageColor: AmneziaStyle.color.paleGray
function clickedFunc() {
searchTextField.textField.text = ""
root.isSearchBarVisible = false
}