aboutsummaryrefslogtreecommitdiff
path: root/go/ui/collection.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/ui/collection.go')
-rw-r--r--go/ui/collection.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/go/ui/collection.go b/go/ui/collection.go
index 3de52e11..662d1bbf 100644
--- a/go/ui/collection.go
+++ b/go/ui/collection.go
@@ -135,11 +135,6 @@ func (c *Collection) switchFocus(fcsbl Widget) {
}
}
-func passInput(ev InputEvent, textInput *TextInput) {
- textInput.AddInput(ev.Ctx.(TextCtx).in)
- textInput.HandleKey()
-}
-
func (c *Collection) IsUpdatable() bool {
return true
}
@@ -180,10 +175,6 @@ func (c *Collection) Update() error {
ConsumeInput(i)
}
case Text:
- if txt, ok := w.(*TextInput); ok {
- passInput(ev, txt)
- ConsumeInput(i)
- }
case HoverEnd:
if c.hovering != nil {
c.hovering.Hover(false, ev.X, ev.Y)
@@ -195,12 +186,6 @@ func (c *Collection) Update() error {
c.hovering = w
}
}
- // handle focused text input
- } else if ev.Kind == Text {
- if txt, ok := c.focused.(*TextInput); ok {
- passInput(ev, txt)
- ConsumeInput(i)
- }
}
}