Virtual keyboard

UI element

Brief description

Screenshot

Virtual keyboard overlaps on the canvas

In the Nokia Asha software platform, when the virtual keyboard is open, it overlaps on the canvas, and the canvas does not repaint/reposition correctly. Therefore, while porting your MIDlet from Series 40 full touch to Nokia Asha software platform you must:

  • Implement the KeyboardVisibilityListener receiving a notification whenever the visibility of a virtual keyboard changes.

  • Get the height of the virtual keyboard when it is open, and then repaint the canvas.

Hiding the virtual keyboard

The system property com.nokia.keyboard.type returns "OnekeyBack" on Nokia Asha software platform. Therefore, to make your code snippet compatible on both Series 40 full touch and Nokia Asha software platform, modify it as follows:

String keyboardType = System.getProperty("com.nokia.keyboard.type");
if (keyboardType.equals("OnekeyBack") || keyboardType.equals("None")) {
    // Series 40 full touch or Nokia Asha software platform detected
    // Your code here
    com.nokia.mid.ui.VirtualKeyboard.hideOpenKeypadCommand(true);
}

Settings button on the virtual keyboard

In the Nokia Asha software platform, there is no settings button on the virtual keypad. Instead it is available in the option menu.