fix(segmented_button): ensure modifier state exact match for tab

This commit is contained in:
Ashley Wulber 2025-10-21 13:03:38 -04:00 committed by Michael Murphy
parent f2e965c76c
commit 2e87bd7c41

View file

@ -1054,10 +1054,12 @@ where
}) = event
{
state.focused_visible = true;
return if modifiers.shift() {
return if modifiers == keyboard::Modifiers::SHIFT {
self.focus_previous(state)
} else {
} else if modifiers.is_empty() {
self.focus_next(state)
} else {
event::Status::Ignored
};
}