mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
Fix autocomplete text issue on query change (#7392)
* Fix autocomplete text issue on query change * Update from invariant to ordinal case for exact byte to byte matching * Add tests for checking when autocomplete should be empty
This commit is contained in:
committed by
GitHub
parent
0314b570cd
commit
466ed10f3d
@@ -336,8 +336,9 @@ namespace PowerLauncher
|
||||
{
|
||||
var textBox = (TextBox)sender;
|
||||
var text = textBox.Text;
|
||||
var autoCompleteText = SearchBox.AutoCompleteTextBlock.Text;
|
||||
|
||||
if (string.IsNullOrEmpty(text))
|
||||
if (MainViewModel.ShouldAutoCompleteTextBeEmpty(text, autoCompleteText))
|
||||
{
|
||||
SearchBox.AutoCompleteTextBlock.Text = string.Empty;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user