-
-
Notifications
You must be signed in to change notification settings - Fork 13
Default selection is wrong #28
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
If no "prioritized" exist, we should at least try to find a focusable in the root menu
self.focusables
.iter()
// The focused focusable.
.find_map(|(e, focus)| (focus.state == Focused).then(|| e))
// Prioritized focusable within the root menu (if it exists)
.or_else(root_prioritized)
// Any prioritized focusable
.or_else(any_prioritized)
// Any focusable
.or_else(fallback)The current fallback method only checks for a prioritized in the root menu, then any prioritized. Before going for "any prioritized" it should go for "any in root menu".
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working