diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-10-18 14:44:54 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-10-18 14:47:21 +0200 |
| commit | 03f09542930eb96a657a88e5b57bf47a95ac73da (patch) | |
| tree | 2b3de603b4ad25471da76dc04ce51a5e7f59f8c2 /go/ui/collection.go | |
| parent | 848dceaef3578c874633611b81eae465c9255f52 (diff) | |
| download | muhqs-game-main.tar.gz muhqs-game-main.zip | |
Diffstat (limited to 'go/ui/collection.go')
| -rw-r--r-- | go/ui/collection.go | 15 |
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) - } } } |
