Add numerical key_codes to event_map on kindle 3 (#12358)

This commit is contained in:
David
2024-08-24 13:17:40 +01:00
committed by GitHub
parent 39fa008e21
commit 4910afffdd
6 changed files with 23 additions and 2 deletions

View File

@@ -136,7 +136,7 @@ function ReaderRolling:registerKeyEvents()
self.key_events.GotoNextView = { { { "RPgFwd", "LPgFwd", "Right" } }, event = "GotoViewRel", args = 1, }
self.key_events.GotoPrevView = { { { "RPgBack", "LPgBack", "Left" } }, event = "GotoViewRel", args = -1, }
end
if Device:hasKeyboard() then
if Device:hasKeyboard() and not Device.k3_alt_plus_key_kernel_translated then
self.key_events.GotoFirst = { { "1" }, event = "GotoPercent", args = 0, }
self.key_events.Goto11 = { { "2" }, event = "GotoPercent", args = 11, }
self.key_events.Goto22 = { { "3" }, event = "GotoPercent", args = 22, }