From cafa86a5bd8cdb9c2af10a520225a48bd047bb76 Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Fri, 13 Apr 2012 15:19:42 +0800 Subject: [PATCH] fix condition in saveWaitForEvent() add newline escape sequence. close #106 --- keys.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keys.lua b/keys.lua index a389bb085..b32a4c949 100644 --- a/keys.lua +++ b/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