diff --git a/modules/applications/nshc-auth.lua b/modules/applications/nshc-auth.lua index 585bcef..031cf73 100644 --- a/modules/applications/nshc-auth.lua +++ b/modules/applications/nshc-auth.lua @@ -25,6 +25,8 @@ function nshc(P,nid,pW) while true do if ev[1] == "net_msg" and ev[2] == nid and ev[3] == P then break + elseif ev[1] == "key" and ev[2] == sI and ev[3] == 29 and ev[4] == 27 then + break end C.yield() end diff --git a/modules/applications/nshc.lua b/modules/applications/nshc.lua index b4324be..95ac96b 100644 --- a/modules/applications/nshc.lua +++ b/modules/applications/nshc.lua @@ -23,6 +23,8 @@ function nshc(P,nid) while true do if ev[1] == "net_msg" and ev[2] == nid and ev[3] == P then break + elseif ev[1] == "key" and ev[2] == sI and ev[3] == 29 and ev[4] == 27 then + break end C.yield() end