aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--input.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/input.lua b/input.lua
index b161993..5766a00 100644
--- a/input.lua
+++ b/input.lua
@@ -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