Skip to content

Commit

Permalink
Now text is selected when findbar comes into focus. (#319)
Browse files Browse the repository at this point in the history
* Now text is selected when findbar comes into focus.
  • Loading branch information
soumyamahunt committed Mar 3, 2020
1 parent 909c58d commit 65945ef
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ public void Focus(FindAndReplaceMode mode)
{
if (mode == FindAndReplaceMode.FindOnly)
{
FindBar.SelectionStart = 0;
FindBar.SelectionLength = FindBar.Text.Length;
FindBar.Focus(FocusState.Programmatic);
}
else
Expand Down

0 comments on commit 65945ef

Please sign in to comment.