mirror of https://github.com/koreader/koreader
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
407 B
Lua
25 lines
407 B
Lua
12 years ago
|
ReaderMenu = InputContainer:new{
|
||
|
key_events = {
|
||
|
ShowMenu = { { "Menu" }, doc = "show menu" },
|
||
|
},
|
||
|
}
|
||
|
|
||
|
function ReaderMenu:onShowMenu()
|
||
|
local item_table = {}
|
||
|
|
||
|
table.insert(item_table, {
|
||
|
text = "Return to file browser"
|
||
|
})
|
||
|
|
||
|
local main_menu = Menu:new{
|
||
|
title = "Document menu",
|
||
|
item_table = item_table,
|
||
|
width = 300,
|
||
|
height = #item_table + 3 * 28
|
||
|
}
|
||
|
|
||
|
UIManager:show(main_menu)
|
||
|
|
||
|
return true
|
||
|
end
|