mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
ReaderHighlight: close popup menu on 'Copy' (#7776)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user