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

This commit is contained in:
David authored and GitHub committed 2024-08-24 14:17:40 +02:00
1 parent 39fa008e21
commit 4910afffdd
6 files changed
+23 -2

No files matched your search

@@ -67,7 +67,7 @@ function ReaderPaging:registerKeyEvents()
self.key_events.GotoNextPos = { { "Down" }, event = "GotoPosRel", args = 1, }
self.key_events.GotoPrevPos = { { "Up" }, event = "GotoPosRel", 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, }