Add menu key event to Menu widget (#11966)

As seen here https://github.com/koreader/koreader/pull/11918#issuecomment-2137290809
This commit is contained in:
David
2024-06-05 07:07:03 +01:00
committed by GitHub
parent 86fa488508
commit 2d07a82ea2

View File

@@ -963,6 +963,7 @@ function Menu:init()
if Device:hasKeys() then
-- set up keyboard events
self.key_events.Close = { { Input.group.Back } }
self.key_events.LeftButtonTap = { { "Menu" } }
if Device:hasFewKeys() then
self.key_events.Close = { { "Left" } }
end