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.
Explaining Key Events in Symbian
Normally, keyboard key presses result in three events being delivered to the client: EEventKeyDown, EEventKey, and EEventKeyUp.
What is EEventKeyDown?
When the user presses the key, at this moment the client receives a EEventKeyDown event. This event is only delivered once, even if the user then keeps the key depressed for a long while.
What is EEventKey?
On pressing any key, a EEventKey event is received. If the key auto-repeats, multiple EEventKey events may be delivered.
What is EEventKeyUp?
When the user finally releases the key, at this moment the client receives a EEventKeyUp event.
Note: It does not matter whether the key is pressed for a long or short time, EEventKeyUp is received at the release of the key.
How to catch different KeyEvents ?
TKeyResponse CMyAppContainer::OfferKeyEventL( const TKeyEvent&
aKeyEvent, TEventCode aType )
if( aType == EEventKeyDown )
// Process EEventKeyDown
if( aType == EEventKey )
if( aType == EEventKeyUp )
// Process EEventKeyUp