Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
New Contributor
ReelAlien
Posts: 8
Registered: ‎10-20-2012
My Carrier: Rogers

Closing Playbook Keyboard After Input

Hello All,

 

Building a little app with search field. I assumed, incorrectly, that the keyboard would close if I trapped the enter key...

<input type="text" id="searchString" onKeydown="Javascript&colon; if (window.event.keyCode==13) startSearch()"/>

 

Search gets performed and results are returned, but keyboard stays open.

 

Tried document.getElementById('btnSearch').click() as well, with same result. 

 

Can anybody point me in the right direction?

 

Thx in advance.

 

 

Please use plain text.
Contributor
aaroncajes
Posts: 12
Registered: ‎10-24-2012
My Carrier: n/a

Re: Closing Playbook Keyboard After Input

I haven't tried that one yet. But i think users are the one who "manually" hide the keyboard...
Please use plain text.