Overlays: review r1 fixes
This commit is contained in:
41 files changed
+770
-278
No files matched your search
+1
-4
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user