if ti
is a TextInput, ti.on('input', e => zog(e.target.text))
prints undefined (zog(e.target)
prints the html input tag and not a ZIM object)
and in the version i'm using (VERSION="017/ZIM") zog(ti.text)
doesn't print anything at all
Oh yes For now, get the e.target.value. We will look into it in ZIM 018. You can also ask for ti.text rather than use e.target.
In ZIM 018 ZIM TextInput() focus, blur, input, change all have the TextInput as the event object target and the input event object also has a data property that gives which key just got pressed. Thanks.
1 Like