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 Retired ‎02-16-2010 03:45 PM - edited ‎09-16-2010 02:42 PM (1,360 Views)



This article applies to the following:

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





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.




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.




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

Users Online
Currently online: 18 members 1,871 guests
Please welcome our newest community members: