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

@@ -73,3 +73,16 @@ function UI.DropMenu:eventHandler(event)
end
return true
end
function UI.DropMenu.example()
return UI.MenuBar {
buttons = {
{ text = 'File', dropdown = {
{ text = 'Run', event = 'run' },
{ text = 'Shell s', event = 'shell' },
{ spacer = true },
{ text = 'Quit ^q', event = 'quit' },
} },
}
}
end