From ad8a08f5dafd6d783af07a984fcc5d2a99e0a0ec Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sat, 9 Jul 2022 15:54:33 +0200 Subject: [PATCH] Ensures, that the text box of input component is selected Closes #22 --- I18N Commander/UI WinForms/Dialogs/InputDialog.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/I18N Commander/UI WinForms/Dialogs/InputDialog.cs b/I18N Commander/UI WinForms/Dialogs/InputDialog.cs index 55f19f0..25afee0 100644 --- a/I18N Commander/UI WinForms/Dialogs/InputDialog.cs +++ b/I18N Commander/UI WinForms/Dialogs/InputDialog.cs @@ -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(),