Propagator unfocuses children before focusing a new one

This commit is contained in:
Sasha Koshka 2023-03-15 23:49:57 -04:00
parent c1b3562d10
commit 639baecee5

View File

@ -132,6 +132,7 @@ func (propagator *Propagator) RequestFocus (
) { ) {
if parent, ok := propagator.core.Parent().(elements.FocusableParent); ok { if parent, ok := propagator.core.Parent().(elements.FocusableParent); ok {
if parent.RequestFocus(propagator.core.Outer().(elements.Focusable)) { if parent.RequestFocus(propagator.core.Outer().(elements.Focusable)) {
propagator.HandleUnfocus()
propagator.focused = true propagator.focused = true
granted = true granted = true
} }