update to master

This commit is contained in:
endlesstravel 2016-11-06 15:18:02 +08:00
parent 4638fb1ea5
commit 10e79ca5c8
3 changed files with 6 additions and 31 deletions

View file

@ -52,7 +52,7 @@ return function(core, input, ...)
opt.state = core:registerHitbox(opt.id, x,y,w,h)
opt.hasKeyboardFocus = core:grabKeyboardFocus(opt.id)
if (input.candidate_text.text == "") and opt.hasKeyboardFocus then
if opt.hasKeyboardFocus then
local keycode,char = core:getPressedKey()
-- text input
if char and char ~= "" then