mirror of
https://github.com/outbackdingo/amnezia-client.git
synced 2026-01-27 02:18:09 +00:00
fix: users search field clears on 'x' button or 'escape' key clicked (#1920)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user