Both login dialogs react on Enter key (moves focus).

This commit is contained in:
Milan Hanajik
2018-03-15 04:50:52 +01:00
parent 4245238112
commit e8af9418bf
5 changed files with 94 additions and 67 deletions
+8
View File
@@ -164,6 +164,14 @@ namespace TBF.Forms
}
}
private void passwordTextBox_KeyPress(object sender, KeyPressEventArgs e)
{
if (Convert.ToInt32(e.KeyChar) == 13)
{
okButton_Click(sender, e);
}
}
private void aliasLabel_Click(object sender, EventArgs e)
{
Method++;
+2
View File
@@ -74,6 +74,7 @@ namespace TBF.Forms
resources.ApplyResources(this.passwordTextBox, "passwordTextBox");
this.passwordTextBox.Name = "passwordTextBox";
this.passwordTextBox.UseSystemPasswordChar = true;
this.passwordTextBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.passwordTextBox_KeyPress);
//
// cancelButton
//
@@ -96,6 +97,7 @@ namespace TBF.Forms
//
resources.ApplyResources(this.userNameTextBox, "userNameTextBox");
this.userNameTextBox.Name = "userNameTextBox";
this.userNameTextBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.userNameTextBox_KeyPress);
//
// legalizatorComboBox
//