[Solved]How to select char left from cursor in TextInput?
-
wrote on 3 Apr 2015, 16:23 last edited by p3c0 4 Apr 2015, 09:44
I want to select 1 character left from cursor in textInput, how can I do that?
-
@Zubalama Try this:
inpuT.getText(inpuT.length-1,inpuT.length) ///inpuT = id of TextInput.
-
@Zubalama said:
select 1 character left from cursor in textInput
input.text=input.text-input.getText(input.length-1,input.length) why it returns "nan"? just nan?
@Zubalama Why are you subtracting text again from it ?
JustinpuT.getText(inpuT.length-1,inpuT.length)
should work. -
wrote on 4 Apr 2015, 09:02 last edited by
because I'm trying to make backspace button, and onClick won't work because I'm trying to do it for remote control
-
because I'm trying to make backspace button, and onClick won't work because I'm trying to do it for remote control
-
wrote on 4 Apr 2015, 09:33 last edited by Zubalama 4 Apr 2015, 09:34
1 more question how do I make topic "solved"?
-
@Zubalama There's a Topic Tools box at the bottom. Inside it contains Mark Solved option. If it doesn't work then edit the post title and prepend [Solved]. If you don't get it, let us know.
3/9