diff --git a/README.md b/README.md index 734202c..ba9d88e 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,7 @@ Quickie is an [immediate mode gui][IMGUI] library for [LÖVE][LOVE]. Initial function love.keypressed(key, code) gui.keyboard.pressed(key) -- LÖVE 0.8: see if this code can be converted in a character - if pcall(string.char, code) code > 0 then + if pcall(string.char, code) and code > 0 then gui.keyboard.textinput(string.char(code)) end end