mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
the Back key on Android should close the popup window and menu
This commit is contained in:
@@ -12,13 +12,6 @@ local _ = require("gettext")
|
||||
local ReaderHighlight = InputContainer:new{}
|
||||
|
||||
function ReaderHighlight:init()
|
||||
if Device:hasKeyboard() then
|
||||
self.key_events = {
|
||||
ShowToc = {
|
||||
{ "." },
|
||||
doc = "highlight text" },
|
||||
}
|
||||
end
|
||||
self.ui.menu:registerToMainMenu(self)
|
||||
end
|
||||
|
||||
@@ -310,6 +303,7 @@ function ReaderHighlight:onHoldRelease(arg, ges)
|
||||
{
|
||||
{
|
||||
text = _("Translate"),
|
||||
enabled = false,
|
||||
callback = function()
|
||||
self:translate(self.selected_text)
|
||||
UIManager:close(self.highlight_dialog)
|
||||
|
||||
Reference in New Issue
Block a user