Skip to content

Commit

Permalink
fix: IsTabStop handling for TextBox on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Jan 12, 2022
1 parent da65107 commit e3e2e3f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Uno.UI/UI/Xaml/Controls/TextBox/TextBoxView.macOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,10 @@ public override bool BecomeFirstResponder()
{
UpdateCaretColor();

_textBox.GetTarget()?.Focus(FocusState.Pointer);
if (_textBox.GetTarget() is TextBox textBox && textBox.FocusState == FocusState.Unfocused)
{
textBox.Focus(FocusState.Pointer);
}

return base.BecomeFirstResponder();
}
Expand Down

0 comments on commit e3e2e3f

Please sign in to comment.