kobo(fix): make sure sleep cover is not interrupting sleeping when ignore_power_sleepcover is set

This commit is contained in:
Qingping Hou
2016-09-11 21:38:06 -07:00
parent 22964a77a0
commit 93b3262db7
3 changed files with 17 additions and 7 deletions

View File

@@ -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