Namespaces

Variants
Actions

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:Some S60 3rd Edition phones uses EKeyRepeat rather than EKeyDown raw event for repeats (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}}.

Most S60 devices generate TRawEvent::EKeyDown raw key codes even for repeated keystrokes. However, the Nokia E71 and Nokia E66 produce TRawEvent::EKeyRepeat instead under some circumstances. This known issue has been verified by Nokia Developer.

Article Metadata
Tested with
Devices(s): Nokia E71 (sw version 100.07.76), Nokia E66 (sw version 100.17.9)
Compatibility
Platform(s): S60 3rd Edition FP1
S60 3rd Edition FP1
Article
Created: mgroeber9110 (28 Oct 2008)
Last edited: hamishwillee (20 Jun 2012)

Description

When relaying raw keyboard events to an application, for example in the OfferRawEvent() method of an Animation DLL, most S60 devices will generate the TRawEvent::EKeyDown method for both the first and subsequent events if the key is held down and auto-repeats.

However, an Animation DLL on the Nokia E71 and Nokia E66 will received EKeyDown on the first press, followed by EKeyRepeat on subsequent presses. Code that checks for EKeyDown only (because it worked in other devices and the emulator) does not work correctly and ignores repeated keypresses.

Solution

In the handler for raw events, check for both EKeyDown and EKeyRepeat and treat them in the same way. This will work on both the Nokia E71 and Nokia E66 and other models. Identification of "held" keys should use other means to distinguish between first and subsequent presses, such as checking for the time between Down and Up.

This page was last modified on 20 June 2012, at 03:06.
64 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.

×