diff --git a/Wox/MainWindow.xaml b/Wox/MainWindow.xaml index bfc5b9871f..4b5a315fed 100644 --- a/Wox/MainWindow.xaml +++ b/Wox/MainWindow.xaml @@ -20,7 +20,7 @@ + x:Name="tbQuery" PreviewKeyDown="TbQuery_OnPreviewKeyDown" TextChanged="TbQuery_OnTextChanged" /> diff --git a/Wox/MainWindow.xaml.cs b/Wox/MainWindow.xaml.cs index f87277bbbe..c3b9cd0301 100644 --- a/Wox/MainWindow.xaml.cs +++ b/Wox/MainWindow.xaml.cs @@ -63,7 +63,7 @@ namespace Wox tbQuery.CaretIndex = tbQuery.Text.Length; if (requery) { - TextBoxBase_OnTextChanged(null, null); + TbQuery_OnTextChanged(null, null); } })); } @@ -439,7 +439,7 @@ namespace Wox } } - private void TextBoxBase_OnTextChanged(object sender, TextChangedEventArgs e) + private void TbQuery_OnTextChanged(object sender, TextChangedEventArgs e) { if (ignoreTextChange) { ignoreTextChange = false; return; }