From 4206d7fe5cf450fbc1f9a16e8d57b85c08df3dab Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 17 Jun 2025 11:43:34 -0500 Subject: make input events consumable Having a input queue of consumable input events allow widgets to prevent the further handling of the same event by different collections by consuming the event. --- go/dummy-ui/main.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'go/dummy-ui') diff --git a/go/dummy-ui/main.go b/go/dummy-ui/main.go index cf49813e..c24d5031 100644 --- a/go/dummy-ui/main.go +++ b/go/dummy-ui/main.go @@ -21,6 +21,10 @@ func (a *app) Update() error { a.build() } + if err := ui.Update(); err != nil { + return err + } + return a.Collection.Update() } -- cgit v1.2.3