diff --git a/elements/core/propagator.go b/elements/core/propagator.go index d82db32..b0b5898 100644 --- a/elements/core/propagator.go +++ b/elements/core/propagator.go @@ -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 } } }