Skip to content

Commit

Permalink
- Fixed a text view focus problem
Browse files Browse the repository at this point in the history
  • Loading branch information
wmjordan committed Jun 3, 2019
1 parent b51f90a commit 765a607
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Codist/Controls/ExternalAdornment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ protected override void OnVisualChildrenChanged(DependencyObject visualAdded, De
element.MouseEnter -= SuppressQuickInfo;
element.MouseLeftButtonDown -= BringToFront;
}
if (Children.Count == 0) {
if (Children.Count == 0 || Children.Count == 1 && Children[0] is null) {
_View.Properties.RemoveProperty(nameof(ExternalAdornment));
FocusOnTextView();
}
}

Expand Down

0 comments on commit 765a607

Please sign in to comment.