mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
added wrapper function for input.waitForEvent that retries on EINTR
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user