Community: Wiki

你在这里: You Are Here: Olet tässä: Vous êtes ici: Sie befinden sich hier: Tu sei qui: 現在のページ: Você está aqui: Вы здесь: Usted está aquí:
This page was last modified 10:39, 31 October 2008.

TSS000288 - How to utilize Communicators' application keys

From Forum Nokia Wiki



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):

Overview

How to utilize Communicators’ application keys

Description

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.

Related Discussions

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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditFurlTechnocratiMagnoliaTwitter  Share this page Share this page Invite a friend Invite a friend
E-mail Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us Regional websites: Chinese Japanese © 2008 Nokia