Fix Text widget field access
This commit is contained in:
parent
547c511ef8
commit
bd4594c4b5
1 changed files with 3 additions and 3 deletions
6
text.go
6
text.go
|
@ -66,16 +66,16 @@ func (t *Text) AddChild(w ...Widget) {
|
|||
|
||||
// Clear clears the field's buffer.
|
||||
func (t *Text) Clear() {
|
||||
t.SetText("")
|
||||
t.TextField.SetText("")
|
||||
}
|
||||
|
||||
// Write writes to the field's buffer.
|
||||
func (t *Text) Write(p []byte) (n int, err error) {
|
||||
return t.Write(p)
|
||||
return t.TextField.Write(p)
|
||||
}
|
||||
|
||||
func (t *Text) Text() string {
|
||||
return t.Text()
|
||||
return t.TextField.Text()
|
||||
}
|
||||
|
||||
func (t *Text) HandleMouse(cursor image.Point, pressed bool, clicked bool) (handled bool, err error) {
|
||||
|
|
Loading…
Reference in a new issue