fix some arg names

This commit is contained in:
Kartik K. Agaram 2022-12-23 20:43:37 -08:00
parent 7ef551b821
commit f351ee2f8f
1 changed files with 3 additions and 3 deletions

View File

@ -209,16 +209,16 @@ function App.textinput(t)
end end
end end
function App.keyreleased(chord, key) function App.keyreleased(key, scancode)
-- ignore events for some time after window in focus (mostly alt-tab) -- ignore events for some time after window in focus (mostly alt-tab)
if Current_time < Last_focus_time + 0.01 then if Current_time < Last_focus_time + 0.01 then
return return
end end
-- --
if Current_app == 'run' then if Current_app == 'run' then
if run.key_release then run.key_release(chord, key) end if run.key_release then run.key_release(key, scancode) end
elseif Current_app == 'source' then elseif Current_app == 'source' then
if source.key_release then source.key_release(chord, key) end if source.key_release then source.key_release(key, scancode) end
else else
assert(false, 'unknown app "'..Current_app..'"') assert(false, 'unknown app "'..Current_app..'"')
end end