2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00
koreader/frontend/ui/elements/flash_keyboard.lua

13 lines
349 B
Lua
Raw Normal View History

local _ = require("gettext")
return {
text = _("Flash keyboard"),
checked_func = function()
return G_reader_settings:nilOrTrue("flash_keyboard")
end,
callback = function()
local disabled = G_reader_settings:nilOrTrue("flash_keyboard")
G_reader_settings:saveSetting("flash_keyboard", not disabled)
end,
}