Boxes are able to check if they are focused

This commit is contained in:
Sasha Koshka 2024-06-03 02:18:30 -04:00
parent 250c3076fb
commit 5a2b4cc2f5

View File

@ -217,7 +217,7 @@ func (this *box) SetFocusable (focusable bool) {
func (this *box) Focused () bool {
hierarchy := this.getHierarchy()
if hierarchy == nil { return false }
return hierarchy.isFocused(this)
return hierarchy.isFocused(this.outer)
}
func (this *box) Modifiers () input.Modifiers {