ReaderHighlight: close popup menu on 'Copy' (#7776)

This commit is contained in:
hius07
2021-05-31 21:36:12 +03:00
committed by GitHub
parent f25da5d0d5
commit 2df54251a7

View File

@@ -75,6 +75,11 @@ function ReaderHighlight:init()
enabled = Device:hasClipboard(),
callback = function()
Device.input.setClipboardText(cleanupSelectedText(_self.selected_text.text))
_self:onClose()
self:clear()
UIManager:show(Notification:new{
text = _("Selection copied to clipboard."),
})
end,
}
end,