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

Java Development

Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified
Accepted Solution

VirtualKeyboard.setVisibility() on Storm Simulator

Anybody else working on the Storm simulator having similar issue?


- virtual keyboard gets instantiated (for example, when the user clicks on a text field)


- user exits the screen, but the virtual keyboard remains, even though the old screen called setVisibility(HIDE) from the onClose() method


- when the original calling screen gets focus back, it calls setVisibility(HIDE)


- the calling screen also called setVisibility(HIDE_FORCE) from its constructor


...and yet the keyboard remains on the screen.




Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: VirtualKeyboard.setVisibility() on Storm Simulator

Issue resolved.


Turns out that if you have a Screen implementation that overrides onFocusNotify(), you will keep the framework from clearing the keyboard.


Adding a call to super.onFocusNotify() clears up the issue.