mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-06-28 00:54:47 -05:00
@ -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
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user