Fix the text boxes in the server edit screen not being focusable

This commit is contained in:
Thinkofname 2016-04-26 00:31:47 +01:00
parent 2e3d9a0a4b
commit 6e33c3cc36
1 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,7 @@ impl super::Screen for EditServerEntry {
.size(400.0, 40.0)
.alignment(ui::VAttach::Middle, ui::HAttach::Center)
.create(ui_container);
ui::TextBox::make_focusable(&server_name, ui_container);
ui::TextBuilder::new()
.text("Name:")
.position(0.0, -18.0)
@ -102,6 +103,7 @@ impl super::Screen for EditServerEntry {
.size(400.0, 40.0)
.alignment(ui::VAttach::Middle, ui::HAttach::Center)
.create(ui_container);
ui::TextBox::make_focusable(&server_address, ui_container);
ui::TextBuilder::new()
.text("Address")
.position(0.0, -18.0)