mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 22:00:03 -04:00
Fix focus behavior when pressing Tab with no focus (#1861)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user