Skip to content

Commit

Permalink
Forgot to check if config was nil
Browse files Browse the repository at this point in the history
  • Loading branch information
britzl committed Feb 7, 2019
1 parent d9d5621 commit 61db8d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gooey/internal/input.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function M.input(node_id, keyboard_type, action_id, action, config, refresh_fn)
end)
-- ignore arrow keys
if not string.match(hex, "EF9C8[0-3]") then
if not config.allowed_characters or action.text:match(config.allowed_characters) then
if not config or not config.allowed_characters or action.text:match(config.allowed_characters) then
input.text = input.text .. action.text
if config and config.max_length then
input.text = input.text:sub(1, config.max_length)
Expand Down

0 comments on commit 61db8d2

Please sign in to comment.