Fix: Searchbar not working (#3270) (#3306)

This commit is contained in:
Nilesh
2025-05-05 20:45:51 +05:30
committed by GitHub
parent 14943e3c55
commit b8b16be24b
3 changed files with 137 additions and 0 deletions

View File

@ -267,6 +267,10 @@ $sync["Form"].Add_Closing({
$sync.SearchBarClearButton.Add_Click({
$sync.SearchBar.Text = ""
$sync.SearchBarClearButton.Visibility = "Collapsed"
# Focus the search bar after clearing the text
$sync.SearchBar.Focus()
$sync.SearchBar.SelectAll()
})
# add some shortcuts for people that don't like clicking
@ -427,6 +431,9 @@ $sync["SearchBar"].Add_TextChanged({
"Install" {
Find-AppsByNameOrDescription -SearchString $sync.SearchBar.Text
}
"Tweaks" {
Find-TweaksByNameOrDescription -SearchString $sync.SearchBar.Text
}
}
})