commit
e64a822de8
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ return function(core, input, ...)
|
||||||
if opt.hasKeyboardFocus then
|
if opt.hasKeyboardFocus then
|
||||||
local keycode,char = core:getPressedKey()
|
local keycode,char = core:getPressedKey()
|
||||||
-- text input
|
-- text input
|
||||||
if char ~= "" then
|
if char and char ~= "" then
|
||||||
local a,b = split(input.text, input.cursor)
|
local a,b = split(input.text, input.cursor)
|
||||||
input.text = table.concat{a, char, b}
|
input.text = table.concat{a, char, b}
|
||||||
input.cursor = input.cursor + utf8.len(char)
|
input.cursor = input.cursor + utf8.len(char)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue