Skip to content

Commit dac5834

Browse files
committed
Workaround for setting allow return jumping text box location
1 parent 09b1f37 commit dac5834

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/UI/Windows/GetTextDialog.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ public GetTextDialog(DialogArgs args, string? initialValue)
5555
};
5656
this.textView.KeyDown += this.TextViewKeyPress;
5757

58-
// make it easier for user to replace this text with something else
59-
// by directly selecting it all so next keypress replaces text
60-
this.textView.SelectAll();
6158

6259
this.win.Add(this.textView);
6360

@@ -71,6 +68,12 @@ public GetTextDialog(DialogArgs args, string? initialValue)
7168
SetupMultiLineOptional();
7269
}
7370

71+
this.textView.CursorPosition = new(0, 0);
72+
73+
// make it easier for user to replace this text with something else
74+
// by directly selecting it all so next keypress replaces text
75+
this.textView.SelectAll();
76+
7477
var btnOk = new Button()
7578
{
7679
Text = "Ok",

0 commit comments

Comments
 (0)