Overlays: review r1 fixes

This commit is contained in:
ZacharyZhang-NY committed 2026-10-05 12:59:33 -04:00
1 parent a27727bc71
commit e631f88cc0
41 files changed
+770 -278

No files matched your search

+1 -4
View File
@@ -15,10 +15,7 @@ type DropdownMenuOptions struct {
Label string
}
// DropdownMenu is a button opening an in-window menu that build fills.
// Click, Enter, Space or Down opens it with the focus on the first item;
// the arrows, Home and End move, Escape or Tab closes, and the focus
// returns to the button. It returns the button.
// DropdownMenu is a button opening an in-window menu that build fills; it returns the button.
func DropdownMenu(c *ui.Context, label string, opts DropdownMenuOptions, build func(m *PopupMenu)) *ui.Element {
if build == nil {
panic("mujica: DropdownMenu needs a build function")