Hide numeric keyboard

Hi everybody,

I’m using an input text field with number input type. The question is: is it possible set a done button (native button) to remove it?  I made the same thing for a standard keyboard and it works very good.

If this is no possible, can I set a listener on the background to remove the number keyboard(I don’t have an image as background but a simple display.setDefault(“background”, 0/255, 128/255, 128/255))?

Thank’s everybody

Hi Davide,

Yes, you can detect a tap on some display object and tell the keyboard to disappear. I’ve done this, for example, by just putting an invisible but “.isHitTestable” rectangle object on the screen, and when it’s tapped, I tell the keyboard to unfocus.

http://docs.coronalabs.com/api/library/native/setKeyboardFocus.html

Take care,

Brent

Hi Brent,

as always very helpful.

Thank you!!

Hi Davide,

Yes, you can detect a tap on some display object and tell the keyboard to disappear. I’ve done this, for example, by just putting an invisible but “.isHitTestable” rectangle object on the screen, and when it’s tapped, I tell the keyboard to unfocus.

http://docs.coronalabs.com/api/library/native/setKeyboardFocus.html

Take care,

Brent

Hi Brent,

as always very helpful.

Thank you!!