code: func (t *TextView) HasFocus() bool {
  	// Implemented here with locking because this may be used in the "changed"
  	// callback.
  	t.Lock()
  	defer t.Unlock()
  	return t.hasFocus
  }
docs: // HasFocus returns whether or not this primitive has focus.