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
parent f2e965c76c
commit 9e7bad5a2b
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820

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
};
}