Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Archived:Modifier keys do not generate key press events in devices with full keyboard (Known Issue)

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Article Metadata
Tested with
Devices(s): Nokia E61, Nokia E61i, Nokia E62, Nokia E70, Nokia E90
Created: User:Technical writer 1 (16 Apr 2007)
Last edited: hamishwillee (16 Aug 2013)


The modifier keys (i.e., Shift, Ctrl, Function, Chr) in devices with a full keyboard do not generate separate key press events.

The MIDP key event API (keyPressed/keyRepeated/keyReleased callback methods) does not have proper full keyboard mechanisms so the key codes are only available for character keys. The MIDP key API does not have a mechanism to indicate modifiers in key events so separate presses of modifier keys do not generate separate events in S60 Java. Key combinations like Shift+A or Chr+A will create appropriate character key events.

A special key, for example the Chr key which normally triggers a user interface for special character selection, will deliver only low-level key events if it is combined with some other key.

Note also that in low-level key input it is not possible to trigger key events for more than one special character or accented character with the Chr key combined with some other key. Keystrokes in which the Chr key is combined with other keys will only result in the same key codes repeatedly in consecutive key presses regardless how many times the same key combination is being pressed.


No solution exists.

This page was last modified on 16 August 2013, at 06:06.
53 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.