diff --git a/unireader.lua b/unireader.lua index 1caeac1e1..0a78471dc 100644 --- a/unireader.lua +++ b/unireader.lua @@ -3450,17 +3450,11 @@ function UniReader:addAllCommands() self:redrawCurrentPage() end ) - self.commands:add(KEY_BACK,MOD_ALT,"Back", + self.commands:addGroup(MOD_ALT.."Back, Home", {Keydef:new(KEY_BACK,MOD_ALT),Keydef:new(KEY_HOME,nil)}, "close document", function(unireader) return "break" end) - self.commands:add(KEY_HOME,nil,"Home", - "exit application", - function(unireader) - keep_running = false - return "break" - end) -- commands.map is very large, impacts startup performance on device --Debug("defined commands "..dump(self.commands.map)) end