Propagator unfocuses children before focusing a new one
This commit is contained in:
parent
c1b3562d10
commit
639baecee5
@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user