auto focus IP textbox
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user