Textarea return key Listener called twice in iOS Apppcelerator?

250 Views Asked by At

I have write a function for textArea return key listener in Titanium appcelerator iOS.

$.returnText.addEventListener('return', function(e) {
$.replyMessageTxt.blur();
console.log("click return key");
callbackend() // here will call back end via Api call
});

Meet Following problems:

  • it called twice when i click return key.
  • it send a text to back end with '/n' or '%0A'

i dont know why it's happened. can some one help me to resolve this bug!

Thank You

0

There are 0 best solutions below