fix(segmented_button): ensure modifier state exact match for tab
This commit is contained in:
parent
f2e965c76c
commit
2e87bd7c41
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue