Ensures, that the text box of input component is selected

Closes #22
This commit is contained in:
Thorsten Sommer 2022-07-09 15:54:33 +02:00
parent e45f7df622
commit ad8a08f5da
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -29,6 +29,9 @@ public partial class InputDialog : Form
inputDialog.buttonCancel.Text = options.CancelButtonText;
inputDialog.checkBoxQuestion.Visible = options.ShowQuestionCheckbox;
inputDialog.checkBoxQuestion.Text = options.QuestionCheckboxText;
// Ensure, that the text box is focused on load:
inputDialog.textBoxInput.Select();
return new InputResult(
inputDialog.ShowDialog(),