Fixed Propagator.forChildren

This commit is contained in:
Sasha Koshka 2023-03-04 01:29:45 -05:00
parent be286fa86c
commit 90ce0d7281

View File

@ -277,8 +277,8 @@ func (propagator *Propagator) focusLastFocusableElement (
func (propagator *Propagator) forChildren (callback func (child elements.Element) bool) {
for index := 0; index < propagator.parent.CountChildren(); index ++ {
child := propagator.parent.Child(index)
if child == nil { continue }
if callback(child) { break }
if child == nil { continue }
if !callback(child) { break }
}
}