refactor out global functions showHomePage and showReaderUI

This commit is contained in:
chrox
2014-09-03 12:09:25 +08:00
parent c74c258fc7
commit 2bec0017a0
5 changed files with 77 additions and 63 deletions

View File

@@ -475,6 +475,12 @@ function Menu:init()
}
self.ges_events.Close = self.on_close_ges
end
if Device:hasNoKeyboard() then
-- remove menu item shortcut for K4
self.is_enable_shortcut = false
end
if Device:hasKeys() then
-- set up keyboard events
self.key_events.Close = { {"Back"}, doc = "close menu" }