mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
enhance: do NOT auto focus the text editor when there's no highlighted commit (#448)
This commit is contained in:
parent
32c0aa61cd
commit
b1ce8c5451
1 changed files with 1 additions and 1 deletions
|
@ -336,7 +336,7 @@ namespace SourceGit.Views
|
||||||
|
|
||||||
private void OnTextAreaPointerWheelChanged(object sender, PointerWheelEventArgs e)
|
private void OnTextAreaPointerWheelChanged(object sender, PointerWheelEventArgs e)
|
||||||
{
|
{
|
||||||
if (!TextArea.IsFocused)
|
if (!TextArea.IsFocused && !string.IsNullOrEmpty(_highlight))
|
||||||
Focus();
|
Focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue