auto focus IP textbox

This commit is contained in:
clowwindy
2014-11-08 14:20:32 +08:00
parent 53dab0a049
commit f0b2cb49a4
3 changed files with 19 additions and 10 deletions
+7
View File
@@ -53,6 +53,7 @@ namespace Shadowsocks.View
{
this.Opacity = 1;
this.Show();
IPTextBox.Focus();
}
private bool saveOldSelectedServer()
@@ -98,6 +99,7 @@ namespace Shadowsocks.View
ProxyPortTextBox.Text = server.local_port.ToString();
EncryptionSelect.Text = server.method == null ? "aes-256-cfb" : server.method;
ServerGroupBox.Visible = true;
IPTextBox.Focus();
}
else
{
@@ -275,5 +277,10 @@ namespace Shadowsocks.View
configuration.index = (int)item.Tag;
controller.SaveConfig(configuration);
}
private void ConfigForm_Shown(object sender, EventArgs e)
{
IPTextBox.Focus();
}
}
}