mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
exit KPV on Ctrl+C
This commit is contained in:
@@ -247,6 +247,8 @@ function Input:waitEvent(timeout_us, timeout_s)
|
||||
-- don't report an error on timeout
|
||||
ev = nil
|
||||
break
|
||||
elseif ev == "application forced to quit" then
|
||||
os.exit(0)
|
||||
end
|
||||
DEBUG("got error waiting for events:", ev)
|
||||
if ev ~= "Waiting for input failed: 4\n" then
|
||||
|
||||
Reference in New Issue
Block a user