Allow Backspace to work as back button

This commit is contained in:
poire-z
2022-01-23 18:40:37 +01:00
parent ccc49036aa
commit 16e3b2f0ac
31 changed files with 50 additions and 27 deletions

View File

@@ -21,7 +21,7 @@ local ReaderBack = EventListener:new{
function ReaderBack:init()
if Device:hasKeys() then
self.ui.key_events.Back = { {"Back"}, doc = "Reader back" }
self.ui.key_events.Back = { {Device.input.group.Back}, doc = "Reader back" }
end
-- Regular function wrapping our method, to avoid re-creating
-- an anonymous function at each page turn