From 26d42d3f31b1f34e2ba6be1267b53b152c35a36b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A3=8A?= Date: Sun, 27 Mar 2022 22:22:19 +0800 Subject: [PATCH] =?UTF-8?q?bugfix=EF=BC=9A=E6=B8=85=E7=A9=BA=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E4=BC=9A=E9=87=8D=E6=96=B0=E6=90=9C=E7=B4=A2=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TextLocator/MainWindow.xaml.cs | 16 ++++++++-------- TextLocator/Properties/AssemblyInfo.cs | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/TextLocator/MainWindow.xaml.cs b/TextLocator/MainWindow.xaml.cs index 0749b09..9bf6ab4 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 2385d32..ec36ef2 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 -- Gitee