diff options
-rw-r--r-- | input.lua | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -43,6 +43,12 @@ return function(w) keyboard.makeCyclable(id) if mouse.isActive(id) then keyboard.setFocus(id) end + if keyboard.hasFocus(id) then + love.keyboard.setTextInput(true) + else + love.keyboard.setTextInput(false) + end + if not keyboard.hasFocus(id) then --[[nothing]] -- editing |