mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[feat] Add Device:hasClipboard() (#3465)
References https://github.com/koreader/koreader/issues/3441
This commit is contained in:
@@ -383,8 +383,11 @@ function ReaderHighlight:onHoldRelease()
|
||||
},
|
||||
{
|
||||
{
|
||||
text = "-",
|
||||
enabled = false,
|
||||
text = "Copy",
|
||||
enabled = Device:hasClipboard(),
|
||||
callback = function()
|
||||
Device.input.setClipboardText(self.selected_text.text)
|
||||
end,
|
||||
},
|
||||
{
|
||||
text = _("Translate"),
|
||||
|
||||
Reference in New Issue
Block a user