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

@@ -40,6 +40,9 @@ end
function ReaderWikipedia:registerKeyEvents()
if Device:hasKeyboard() then
self.key_events.ShowWikipediaLookup = { { "Alt", "W" }, { "Ctrl", "W" } }
if Device.k3_alt_plus_key_kernel_translated then
self.key_events.ShowWikipediaLookup = { { Device.k3_alt_plus_key_kernel_translated["W"] } }
end
end
end