enhance: do NOT auto focus the text editor when there's no highlighted commit (#448)

This commit is contained in:
leo 2024-09-09 21:06:44 +08:00
parent 32c0aa61cd
commit b1ce8c5451
No known key found for this signature in database

View file

@ -336,7 +336,7 @@ namespace SourceGit.Views
private void OnTextAreaPointerWheelChanged(object sender, PointerWheelEventArgs e)
{
if (!TextArea.IsFocused)
if (!TextArea.IsFocused && !string.IsNullOrEmpty(_highlight))
Focus();
}