Skip to content

Commit

Permalink
fix(ui): Fix not being able to navigate online menu without mouse (fi…
Browse files Browse the repository at this point in the history
…shfolk#969)

Focus a button by default so can be navigated without mouse. Fixes fishfolk#939
  • Loading branch information
MaxCWhitehead authored and DRuppFv committed Apr 20, 2024
1 parent aa08fbb commit aa3008c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ui/network_game.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ pub fn network_game_menu(
}
if BorderedButton::themed(normal_button_style, lan)
.show(ui)
.focus_by_default(ui)
.clicked()
{
state.match_kind = MatchKind::Lan(default());
Expand Down

0 comments on commit aa3008c

Please sign in to comment.