the Back key on Android should close the popup window and menu

This commit is contained in:
chrox
2014-06-10 15:57:10 +08:00
parent 613c66aa73
commit e624695d54
14 changed files with 39 additions and 21 deletions

View File

@@ -70,7 +70,7 @@ function ReaderUI:init()
self.dialog = self
end
if Device:hasKeyboard() then
if Device:hasKeys() then
self.key_events.Back = {
{ "Back" }, doc = "close document",
event = "Close" }