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

reviewable/pr7785/r1
hius07 3 years ago committed by GitHub
parent f25da5d0d5
commit 2df54251a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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,

Loading…
Cancel
Save