| ID | TSS000288 | Creation date | August 25, 2005 |
| Platform | Series 80 2nd Edition | Devices | Nokia 9500, Nokia 9300 |
| Category | Symbian C++ | Subcategory | General |
| Keywords (APIs, classes, methods, functions): |
How to utilize Communicators’ application keys
Normally the application keys (Desk, My own, etc.) are consumed by the startup application, but by setting the capture priority equal to system applications, the system distributes key events also to your application. The following code shows how to capture the Desk key with RWindowGroup:
// This handle is used to cancel the capture later
TInt32 applicationKey;
// Priority to capture the application keys
TInt capturePriority(1000000);
// Get the root window
RWindowGroup& groupWin = iCoeEnv->RootWin();
applicationKey = groupWin.CaptureKey(EKeyApplication0, 0, 0, capturePriority);
Received key events can be handled in the OfferKeyEventL() function. Application keys range from EKeyApplication0 to EKeyApplication7, as defined in e32keys.h (TKeyCode).
Note: The functionality of application keys should not be changed without user intervention. If possible, the original function of an application key should be retained, and new functionality added, e.g., behind two key presses.
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Soft Keys | Nokia_Archive | Browsing and Mark-ups | 1 | 2002-05-15 20:51 |
| How to add another entry in the "New Message" menu of the messaging application | amitkankani | General Symbian C++ | 3 | 2007-12-19 14:53 |
| Use of GPS from applications... | cdouglass | General Symbian C++ | 3 | 2003-06-03 16:14 |
| Key(s) Simulation "Globally" | ssn.kishore | General Symbian C++ | 18 | 2008-10-08 08:23 |
| Why Symbian? | ssoumya | General Symbian C++ | 2 | 2003-05-22 09:59 |