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.

inside custom component

Native Development

Reply
Developer
Posts: 196
Registered: ‎12-14-2009
My Device: Not Specified

SubmitKeyFocusBehavior not closing virtual keyboard...

I'm trying to close my virtual keyboard. I have one TextArea on the paage and nothing else other than an action bar. 

 

I thought this ought to close it on "Done" Why not?

 

input {
       submitKey: SubmitKey.Done
       submitKeyFocusBehavior: SubmitKeyFocusBehavior.Next
      }

 Says here:

http://developer.blackberry.com/cascades/reference/bb__cascades__submitkeyfocusbehavior.html

 

"Next = 2

Sets the submit key focus behavior to "Next".

When submit is pressed in this control, focus will move to the next focusable control, or if none exists. Focus will be lost and the Virtual keyboard will disappear. @since BlackBerry 10.0.0"

RZA
New Contributor
Posts: 7
Registered: ‎09-02-2010
My Device: Not Specified

Re: SubmitKeyFocusBehavior not closing virtual keyboard...

I'm facing a similar issue. I have to two TextArea controls, and pressing Next on the first one does not move focus to the second TextArea.
Trusted Contributor
Posts: 114
Registered: ‎05-09-2013
My Device: BB10 Z10
My Carrier: Virgin

Re: SubmitKeyFocusBehavior not closing virtual keyboard...

Same issue... This does not work on TextArea, but it works on TextField. Please help,,,

Regular Contributor
Posts: 205
Registered: ‎06-11-2013
My Device: Blackbery z10
My Carrier: RIM

Re: SubmitKeyFocusBehavior not closing virtual keyboard...

try seting focus out for the control.

Highlighted
Regular Contributor
Posts: 205
Registered: ‎06-11-2013
My Device: Blackbery z10
My Carrier: RIM

Re: SubmitKeyFocusBehavior not closing virtual keyboard...

try doing it into the c++ code. I am sure it will work then