code: func (f *Form) HasFocus() bool {
  	if f.hasFocus {
  		return true
  	}
  	for _, item := range f.items {
  		if item.GetFocusable().HasFocus() {
  			return true
  		}
  	}
  	for _, button := range f.buttons {
  		if button.focus.HasFocus() {
  			return true
  		}
  	}
  	return false
  }
docs: // HasFocus returns whether or not this primitive has focus.