Closed dedalqq closed 5 years ago
You can go through the Text variable until you find a 0
. This marks the end of the string, say that i
is the index at which the 0
occurs, then you would get the text string like this: s := string(event.Text[:i])
.
Hi @dedalqq, I added GetText()
method to get the text as string from the TextEditingEvent
and TextInputEvent
. Let me know if it works!
Don't you want to close this issue? I have tested the code and it works fine :-)
Thanks for testing it @gonutz! I shall close this issue then~
i do not found examples for this. =(