mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix condition in saveWaitForEvent()
add newline escape sequence. close #106
This commit is contained in:
2
keys.lua
2
keys.lua
@@ -262,7 +262,7 @@ function input.saveWaitForEvent(timeout)
|
||||
local ok, ev = pcall(input.waitForEvent, timeout)
|
||||
if not ok then
|
||||
print("got error waiting for events:", ev)
|
||||
if ev == "Waiting for input failed: 4" then
|
||||
if ev == "Waiting for input failed: 4\n" then
|
||||
-- EINTR, we got interrupted. Try and restart
|
||||
retry = true
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user