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. Thanks for all your past and future contributions.

How can I detect the "ABC" key event using Symbian C++?

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}}.

The article is believed to be still valid for the original topic scope.

Article Metadata
Platform(s): S60 1st Edition
S60 2nd Edition
S60 2nd Edition (initial release)
S60 1st Edition
Created: User:Technical writer 2 (04 Jun 2004)
Last edited: lpvalente (26 Jul 2014)


How can I detect the "ABC" key?


What are the TKeyEvent.iCode and iScanCode values of the "ABC" (pencil) key?


The ABC key is mapped to the Shift modifier key in S60. The following code detects it:
 TKeyResponse CMyClass::OfferKeyEventL(...)
    TBool shiftKeyPressed = (aKeyEvent.iModifiers & EModifierShift);
The keycode and scancodes depend on the key pressed with the Shift key. The following code detects Shift+OK combination in a listbox's OfferKeyEventL(), where it is used to mark a listbox item:
TKeyResponse CMyBusinessClass::OfferKeyEventL(...)
    TBool shiftKeyPressed = (aKeyEvent.iModifiers & EModifierShift);
    if (shiftKeyPressed && aKeyEvent.iCode==EKeyOK)

This page was last modified on 26 July 2014, at 23:29.
19 page views in the last 30 days.