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

Java Development

Virtual keyboard is not cleared when overriding the onFocusNotify method for a Screen

by BlackBerry Development Advisor ‎02-16-2010 03:45 PM - edited ‎09-16-2010 02:42 PM (1,339 Views)

Summary

 

This article applies to the following:

  • BlackBerry® Device Software 4.7
  • BlackBerry® Storm™ smartphone

Details

 

Problem

 

If the onFocusNotify method for a Screen is overridden, the virtual keyboard always stays on the screen, and setting the virtual keyboard visibility using the VirtualKeyboard.setVisibility method has no effect.

 

Cause

 

The VirtualKeyboard.setVisibility method call sets the virtual keyboard's visibility. These changes are applied to the virtual keyboard when the context has focus. When onFocusNotify is overridden, the focus notification is no longer propagated to the super classes and thus the visibility changes are not applied to the virtual keyboard.

 

Resolution

 

When you override the onFocusNotify method for a Screen, the overriding method must call super.onFocusNotify.

Contributors
Users Online
Currently online: 30 members 1,255 guests
Please welcome our newest community members: