Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit fa7630e

Browse files
This fixes #352
1 parent b99aec4 commit fa7630e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

TextControlBox/TextControlBox.xaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1730,6 +1730,8 @@ public void GoToLine(int index)
17301730
selectionrenderer.SelectionEndPosition = null;
17311731
CursorPosition = selectionrenderer.SelectionStartPosition = new CursorPosition(0, index);
17321732

1733+
ScrollLineIntoView(index);
1734+
this.Focus(FocusState.Programmatic);
17331735
UpdateSelection();
17341736
UpdateCursor();
17351737
}

0 commit comments

Comments
 (0)