Non-touch DPad improvements (#11749)

Closes #11295.
This commit is contained in:
SomeGuy
2024-05-20 20:20:50 +01:00
committed by GitHub
parent 36d2e3cf74
commit 577c5d454f
13 changed files with 223 additions and 20 deletions

View File

@@ -66,6 +66,9 @@ function ReaderBookmark:onGesture() end
function ReaderBookmark:registerKeyEvents()
if Device:hasKeyboard() then
self.key_events.ShowBookmark = { { "B" } }
elseif Device:hasFiveWay() then
self.key_events.ShowBookmark = { { "ScreenKB", "Left" } }
self.key_events.ToggleBookmark = { { "ScreenKB", "Right" } }
end
end