mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[feat] Add Android clipboard definition (#3479)
References https://github.com/koreader/koreader/issues/3441
This commit is contained in:
@@ -14,6 +14,7 @@ local Device = Generic:new{
|
||||
hasFrontlight = yes,
|
||||
firmware_rev = "none",
|
||||
display_dpi = android.lib.AConfiguration_getDensity(android.app.config),
|
||||
hasClipboard = yes,
|
||||
hasColorScreen = yes,
|
||||
}
|
||||
|
||||
@@ -33,6 +34,15 @@ function Device:init()
|
||||
this.device.screen:refreshFull()
|
||||
end
|
||||
end,
|
||||
hasClipboardText = function()
|
||||
return android.hasClipboardText()
|
||||
end,
|
||||
getClipboardText = function()
|
||||
return android.getClipboardText()
|
||||
end,
|
||||
setClipboardText = function(text)
|
||||
return android.setClipboardText(text)
|
||||
end,
|
||||
}
|
||||
|
||||
-- check if we have a keyboard
|
||||
|
||||
Submodule platform/android/luajit-launcher updated: 41dd311483...e303987017
Reference in New Issue
Block a user