diff --git a/TextLocator/MainWindow.xaml.cs b/TextLocator/MainWindow.xaml.cs index 0749b09b5cb2f8c13bf35620df4f998ea6dccbc0..9bf6ab472008614285dbb1159ad01ee7c711f61a 100644 --- a/TextLocator/MainWindow.xaml.cs +++ b/TextLocator/MainWindow.xaml.cs @@ -758,7 +758,14 @@ namespace TextLocator /// 清理查询结果 /// private void CleanSearchResult() - { + { + // 先清空搜索框 + SearchText.Text = ""; + // 光标移除文本框 + SearchText.MoveFocus(new TraversalRequest(FocusNavigationDirection.Next)); + // 光标聚焦 + SearchText.Focus(); + // 搜索结果列表清空 SearchResultList.Items.Clear(); @@ -801,13 +808,6 @@ namespace TextLocator // 隐藏上一个和下一个切换面板 this.SwitchPreview.Visibility = Visibility.Collapsed; - - SearchText.Text = ""; - // 光标移除文本框 - SearchText.MoveFocus(new TraversalRequest(FocusNavigationDirection.Next)); - // 光标聚焦 - SearchText.Focus(); - // 工作状态更新为就绪 WorkStatus.Text = "就绪"; } diff --git a/TextLocator/Properties/AssemblyInfo.cs b/TextLocator/Properties/AssemblyInfo.cs index 2385d32ce66350e9b1860e06ddc86f7707b6a429..ec36ef2cc00ea7528086dcf1c52aca2c46f7064f 100644 --- a/TextLocator/Properties/AssemblyInfo.cs +++ b/TextLocator/Properties/AssemblyInfo.cs @@ -50,7 +50,7 @@ using System.Windows; //通过使用 "*",如下所示: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.2.10")] -[assembly: AssemblyFileVersion("1.2.10.0")] +[assembly: AssemblyFileVersion("1.2.10.1")] // log4net [assembly: log4net.Config.XmlConfigurator(Watch = true)] \ No newline at end of file