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

@@ -318,7 +318,7 @@ function SelectMenu:choose(ypos, height)
self.pagedirty = false
end
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())