Login screen's first detected tab triggers username focus

This commit is contained in:
Julio Cezar Silva 2022-08-11 00:12:42 +00:00 committed by Justin Shipsey
parent 099ed62a69
commit 177fbcb0bc
2 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Use fluent for translations
- First tab on Login screen triggers username focus
### Removed

View File

@ -501,6 +501,9 @@ impl Controls {
screen.banner.server = text_input::State::new();
screen.banner.username = text_input::State::focused();
screen.banner.username.move_cursor_to_end();
} else {
screen.banner.username = text_input::State::focused();
screen.banner.username.move_cursor_to_end();
}
}
}