|
|
|
@ -4,8 +4,8 @@ local UIManager = require("ui/uimanager")
|
|
|
|
|
local _ = require("gettext")
|
|
|
|
|
|
|
|
|
|
-- This whole menu is hidden behind a hasKeys device cap.
|
|
|
|
|
local PlatformNav = {
|
|
|
|
|
text = _("Page turn behavior"), -- Mainly so as to differentiate w/ "Page Turns" when in readermenu...
|
|
|
|
|
local PhysicalButtons = {
|
|
|
|
|
text = _("Physical buttons"), -- Mainly so as to differentiate w/ "Page Turns" when in readermenu...
|
|
|
|
|
sub_item_table = {
|
|
|
|
|
{
|
|
|
|
|
text = _("Invert page turn buttons"),
|
|
|
|
@ -20,11 +20,11 @@ local PlatformNav = {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if Device:canKeyRepeat() then
|
|
|
|
|
table.insert(PlatformNav.sub_item_table, {
|
|
|
|
|
text = _("Disable key repeats"),
|
|
|
|
|
table.insert(PhysicalButtons.sub_item_table, {
|
|
|
|
|
text = _("Disable key repeat"),
|
|
|
|
|
help_text = _("Useful if you don't like the behavior or if your device has faulty switches"),
|
|
|
|
|
checked_func = function()
|
|
|
|
|
return G_reader_settings:isTrue("input_no_key_repeats")
|
|
|
|
|
return G_reader_settings:isTrue("input_no_key_repeat")
|
|
|
|
|
end,
|
|
|
|
|
callback = function()
|
|
|
|
|
UIManager:broadcastEvent(Event:new("ToggleKeyRepeat"))
|
|
|
|
@ -33,4 +33,4 @@ if Device:canKeyRepeat() then
|
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
return PlatformNav
|
|
|
|
|
return PhysicalButtons
|