fix some arg names
This commit is contained in:
parent
7ef551b821
commit
f351ee2f8f
6
main.lua
6
main.lua
|
@ -209,16 +209,16 @@ function App.textinput(t)
|
|||
end
|
||||
end
|
||||
|
||||
function App.keyreleased(chord, key)
|
||||
function App.keyreleased(key, scancode)
|
||||
-- ignore events for some time after window in focus (mostly alt-tab)
|
||||
if Current_time < Last_focus_time + 0.01 then
|
||||
return
|
||||
end
|
||||
--
|
||||
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
|
||||
if source.key_release then source.key_release(chord, key) end
|
||||
if source.key_release then source.key_release(key, scancode) end
|
||||
else
|
||||
assert(false, 'unknown app "'..Current_app..'"')
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue