From c8be2bab33a0fd064cb670b6dd993ff5b49180e7 Mon Sep 17 00:00:00 2001 From: piernov Date: Thu, 13 Mar 2014 17:07:56 +0100 Subject: Quickie: Call love.keyboard.setTextInput() on keyboard focus --- input.lua | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3-54-g00ecf