mirror of
https://github.com/Desour/keyevent.git
synced 2024-07-15 12:09:26 +02:00
add forgotten parameter
This commit is contained in:
parent
6ad4ecfbaa
commit
00e4ba5b14
2
init.lua
2
init.lua
@ -120,7 +120,7 @@ function keyevent.register_on_keypress_bits(keys, func)
|
|||||||
keyevents_bits[keys] = func
|
keyevents_bits[keys] = func
|
||||||
end
|
end
|
||||||
local keyevents = {}
|
local keyevents = {}
|
||||||
function keyevent.register_on_keypress(func)
|
function keyevent.register_on_keypress(keys, func)
|
||||||
keys, func = handle_keys(keys, func)
|
keys, func = handle_keys(keys, func)
|
||||||
keyevents[keys] = func
|
keyevents[keys] = func
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user