added wrapper function for input.waitForEvent that retries on EINTR

This commit is contained in:
HW
2012-04-12 21:00:44 +02:00
parent b11c5f414a
commit 57d769e0ae
7 changed files with 28 additions and 9 deletions

View File

@@ -163,7 +163,7 @@ function InputBox:input(ypos, height, title, d_text)
fb:refresh(1, 20, ypos, w, h)
while true do
local ev = input.waitForEvent()
local ev = input.saveWaitForEvent()
ev.code = adjustKeyEvents(ev)
if ev.type == EV_KEY and ev.value == EVENT_VALUE_KEY_PRESS then
keydef = Keydef:new(ev.code, getKeyModifier())