mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
kobo(fix): make sure sleep cover is not interrupting sleeping when ignore_power_sleepcover is set
This commit is contained in:
@@ -275,12 +275,12 @@ function Input:handleKeyBoardEv(ev)
|
||||
return keycode
|
||||
end
|
||||
|
||||
-- Kobo sleep
|
||||
-- Kobo sleep cover
|
||||
if keycode == "Power_SleepCover" then
|
||||
if ev.value == EVENT_VALUE_KEY_PRESS then
|
||||
return "Suspend"
|
||||
return "SleepCoverClosed"
|
||||
else
|
||||
return "Resume"
|
||||
return "SleepCoverOpened"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user