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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user