aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2014-03-13 17:07:56 +0100
committerpiernov <piernov@piernov.org>2014-03-13 17:07:56 +0100
commitc8be2bab33a0fd064cb670b6dd993ff5b49180e7 (patch)
tree0692e25a01cff1139aafb54087a7bfb9980e77df
parent52d06037d13afdc68384f1031766ac087cb5e70e (diff)
downloadQuickie-master.tar.gz
Quickie-master.tar.bz2
Quickie-master.tar.xz
Quickie-master.zip
Quickie: Call love.keyboard.setTextInput() on keyboard focusHEADmaster
-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