Skip to content

Commit

Permalink
Fix focus behavior when pressing Tab with no focus
Browse files Browse the repository at this point in the history
  • Loading branch information
mwcampbell committed Jul 27, 2022
1 parent 0571bf6 commit f81466e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions egui/src/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ impl Focus {
} else if self.pressed_tab && self.id == None && !self.give_to_next {
// nothing has focus and the user pressed tab - give focus to the first widgets that wants it:
self.id = Some(id);
self.pressed_tab = false;
}

self.last_interested = Some(id);
Expand Down

0 comments on commit f81466e

Please sign in to comment.