content selection mapped to up/down

reviewable/pr11749/r1
SomeGuy 2 weeks ago committed by GitHub
parent 93b2e27abe
commit 0c10bd9e0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -140,15 +140,9 @@ function ReaderRolling:registerKeyEvents()
}
end
if Device:hasDPad() and Device:hasPageUpDownKeys() then
self.key_events.MoveUp = {
{ "Up" },
event = "Panning",
args = {0, -1},
}
self.key_events.MoveDown = {
{ "Down" },
event = "Panning",
args = {0, 1},
self.key_events.ContentSelection = {
{ { "Up", "Down" } },
event = "ContentSelection",
}
self.key_events.GotoNextChapter = {
{ "Right" },
@ -812,6 +806,10 @@ function ReaderRolling:onGotoPrevChapter()
return true
end
function ReaderRolling:onContentSelection()
return self.ui.highlight:onStartHighlightIndicator()
end
function ReaderRolling:onNotCharging()
self:updateBatteryState()
end

Loading…
Cancel
Save