Boxes are able to check if they are focused
This commit is contained in:
parent
250c3076fb
commit
5a2b4cc2f5
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user