From 24a6b1d7aced3e2da8a4c26dfa844a6eaaf4632e Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 3 Sep 2025 14:26:21 +0200 Subject: add ui to packages and format code --- go/ui/collection.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'go/ui/collection.go') diff --git a/go/ui/collection.go b/go/ui/collection.go index 20dff35e..3de52e11 100644 --- a/go/ui/collection.go +++ b/go/ui/collection.go @@ -97,7 +97,6 @@ func (c *Collection) Contains(x, y int) bool { } func (c *Collection) FindWidgetAt(x, y int) Widget { - // Iterate the widget in reverse order to ensure that upper widgets are // considered first for i := len(c.widgets) - 1; i >= 0; i-- { @@ -111,7 +110,6 @@ func (c *Collection) FindWidgetAt(x, y int) Widget { } func (c *Collection) FindObjectAt(x, y int) any { - // Iterate the widget in reverse order to ensure that upper widgets are // considered first for i := len(c.widgets) - 1; i >= 0; i-- { @@ -128,7 +126,6 @@ func (c *Collection) switchFocus(fcsbl Widget) { log.Printf("switch focus from %v to %v\n", c.focused, fcsbl) if c.focused != nil { c.focused.Focus(false) - } if fcsbl != nil { fcsbl.Focus(true) -- cgit v1.2.3