diff --git a/gfx/event.lua b/gfx/event.lua index fc1816d..d7c248a 100644 --- a/gfx/event.lua +++ b/gfx/event.lua @@ -9,7 +9,7 @@ function Event.getKeyParams(evt) end function Event.isCharEvent(evt, char) - return evt[1] == "char" and (key == nil or evt[2] == key) + return evt[1] == "char" and (char == nil or evt[2] == char) end function Event.getCharValue(evt)