How can I get the keyboard with "Search" button?

I have seen several Corona SDK apps with a special keyboard that pops up when you tap a Search field. This keyboard has a button labelled Search instead of the usual Return. 

Example screenshot attached referencing the excellent Bargain Hunter app posted here : 

http://forums.coronalabs.com/topic/40958-bargain-hunter-price-comparison-app-is-now-available-on-all-major-stores/?hl=%2Bbargain+%2Bhunter

Looking at the API page ( http://docs.coronalabs.com/api/type/TextField/inputType.html ) I can see how to do specific keyboards for “default”, “number”, “decimal”, “phone”, “url” & “email” but nothing for Search… 

Can anyone kindly point me in the right direction on how this is done? Thank you very much!!!

Hi ksan,

Can you try searchField:setReturnKey(“search”)

I haven’t tried it myself yet, so please let me know how it works. Do you have both Android and iOS devices for testing?

Thanks

  Atanas

 

Thank you so much. Funny how the API pages for the keyboard does not link to this call at all… Oh well. Appreciate your help. Will try and report back. I have an old Android (2.2) device as well as a number of IOS devices for testing. 

Yup. This worked well on both IOS and Android. Thank you so much!!!

Hi ksan,

Can you try searchField:setReturnKey(“search”)

I haven’t tried it myself yet, so please let me know how it works. Do you have both Android and iOS devices for testing?

Thanks

  Atanas

 

Thank you so much. Funny how the API pages for the keyboard does not link to this call at all… Oh well. Appreciate your help. Will try and report back. I have an old Android (2.2) device as well as a number of IOS devices for testing. 

Yup. This worked well on both IOS and Android. Thank you so much!!!