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
Robert 46c19ba8e9 Option to disable keyboard flashing (#3050)
* Option to disable keyboard flashing
2017-08-04 14:01:06 +02:00

13 lines
371 B
Lua

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