From b1ce8c5451ae0811818cec559b327087d0aeb85a Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 9 Sep 2024 21:06:44 +0800 Subject: [PATCH] enhance: do NOT auto focus the text editor when there's no highlighted commit (#448) --- src/Views/Blame.axaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Views/Blame.axaml.cs b/src/Views/Blame.axaml.cs index 56fd4c2b..027a0bf9 100644 --- a/src/Views/Blame.axaml.cs +++ b/src/Views/Blame.axaml.cs @@ -336,7 +336,7 @@ namespace SourceGit.Views private void OnTextAreaPointerWheelChanged(object sender, PointerWheelEventArgs e) { - if (!TextArea.IsFocused) + if (!TextArea.IsFocused && !string.IsNullOrEmpty(_highlight)) Focus(); }