accelerators for any event + more inspect examples

This commit is contained in:
kepler155c@gmail.com
2019-11-13 21:50:00 -07:00
parent db48031c7c
commit 3241326a2f
10 changed files with 140 additions and 14 deletions

View File

@@ -88,3 +88,12 @@ function UI.MenuBar:eventHandler(event)
return true
end
end
function UI.MenuBar.example()
return UI.MenuBar {
buttons = {
{ text = 'Choice1', event = 'event1' },
{ text = 'Choice2', event = 'event2' },
}
}
end