native.newTextBox()

This is a continuation of the discussion from the API page. http://developer.anscamobile.com/reference/index/nativenewtextbox#comment-98119
[import]uid: 7559 topic_id: 24286 reply_id: 324286[/import]

When i set TextBox object isVisible to false, and there is still selection, then the selection still in there, and there is two blue dot indicator still showing.

My question, is there is a way to set selection at TextBox to nil?

iOS by the way. (And always appear when i do “Select all”)

Edit: Solved.
Doing object.text = object.text should do the work. [import]uid: 116074 topic_id: 24286 reply_id: 102603[/import]

There are 2 things I need on the newTextBox that seems the single line text input has.

  1. To be able to change the keyboard input type to “numbers” or “phone numbers”.
  2. To be able to change the ‘enter’ key to a ‘done’ key. I guess it’s a simple line of code on objective-c for ios programming so i’d assume it would be easy to implement.

Thanks!! [import]uid: 6317 topic_id: 24286 reply_id: 105663[/import]

There is a difference between iOS devices and Nook Color (haven’t checked other Android based devices) when user presses the little keyboard icon on the native keyboard popup.

On iOS, the keyboard goes away and the native text box listener gets an “ended” event, which I can then use to remove the textbox. But on Nook color, closing the keyboard using the keyboard icon doesn’t fire the “ended” event, so I can’t detect that fact and remove the textbox. I would like Corona’s behavior to be consistent across devices/platforms. [import]uid: 9422 topic_id: 24286 reply_id: 126055[/import]

There is a difference between iOS devices and Nook Color (haven’t checked other Android based devices) when user presses the little keyboard icon on the native keyboard popup.

On iOS, the keyboard goes away and the native text box listener gets an “ended” event, which I can then use to remove the textbox. But on Nook color, closing the keyboard using the keyboard icon doesn’t fire the “ended” event, so I can’t detect that fact and remove the textbox. I would like Corona’s behavior to be consistent across devices/platforms. [import]uid: 9422 topic_id: 24286 reply_id: 126055[/import]