Fix handling of special keys (#38)

master
Lucas Pütz 2 weeks ago committed by GitHub
parent cbe88095ab
commit be1953e00e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -293,7 +293,7 @@ function Mode:get_user_input()
-- set the global input variable to the new input.
self.input:set(user_input)
if ZERO <= user_input and user_input <= NINE then
if type(user_input) == "number" and ZERO <= user_input and user_input <= NINE then
local oldCount = self.count:get()
local newCount = tonumber(oldCount .. string.char(user_input))
self.count:set(newCount)

Loading…
Cancel
Save