Compare commits

..

No commits in common. "192e6c6235aababedaeed1605018fd65c98fac0a" and "fad46eafd3c7c00711f61e9be30e15b171acbacf" have entirely different histories.

2 changed files with 4 additions and 17 deletions

View File

@ -287,26 +287,13 @@ func (this *Hierarchy) considerMaskingParents (box anyBox) anyBox {
return box return box
} }
func (this *Hierarchy) isMasked (box anyBox) bool {
parent := box.getParent()
for {
parentBox, ok := parent.(anyBox)
if !ok { break }
if parent.masks() {
return true
}
parent = parentBox.getParent()
}
return false
}
func (this *Hierarchy) focusNext () { func (this *Hierarchy) focusNext () {
found := !this.anyFocused() found := !this.anyFocused()
focused := false focused := false
this.propagateAlt(func (box anyBox) bool { this.propagateAlt(func (box anyBox) bool {
if found { if found {
// looking for the next box to select // looking for the next box to select
if box.canBeFocused() && !this.isMasked(box) { if box.canBeFocused() {
// found it // found it
this.focus(box) this.focus(box)
focused = true focused = true