diff --git a/README.md b/README.md index c58492b..dd33b13 100644 --- a/README.md +++ b/README.md @@ -309,3 +309,5 @@ See the [example app](example/) for examples of how to use Gooey on its own and # Credits * Assets for the Dirty Larry theme from [Dirty Larry](https://github.com/andsve/dirtylarry) * Assets for the Kenneyblue theme from [Kenney](http://www.kenney.nl) +* Assets for the RPG theme from [Kenney](http://www.kenney.nl) +* Font Alagard used in RPG theme by [Hewett Tsoi](https://www.dafont.com/hewett-tsoi.d4888) diff --git a/gooey/gooey.lua b/gooey/gooey.lua index 75b57ce..d89a544 100644 --- a/gooey/gooey.lua +++ b/gooey/gooey.lua @@ -389,6 +389,10 @@ function M.input(node_id, keyboard_type, action_id, action, config) if input.selected then -- new raw text input if action_id == M.TEXT then + -- ignore return key + if action.text == "\n" or action.text == "\r" then + return input + end local hex = string.gsub(action.text,"(.)", function (c) return string.format("%02X%s",string.byte(c), "") end)