You Are Here:

Community: Developer Discussion Boards

#1 Old How to capture red key - 2009-11-07, 12:33

Join Date: Mar 2009
Posts: 69
purnima.attarsingh
Offline
Regular Contributor
hi everyone ,i want to capture Red key .i capturing it in offerkeyeventL .but its not working.
Reply With Quote

#2 Old Re: How to capture red key - 2009-11-07, 12:44

Join Date: Sep 2007
Posts: 843
oracle3
Online
Super Contributor
is the hang off key u mean?
if u do, see the following codes.

void CAppNameAppUi::HandleWsEventL(const TWsEvent &aEvent, CCoeControl *aDestination)
{
switch (aEvent.Type())
{
case KAknUidValueEndKeyCloseEven;
// here is the code to process
....
break;
default:
CAknAppUi::HandleWsEventL(aEvent, aDestination);
}
}
Reply With Quote

#3 Old Re: How to capture red key - 2009-11-07, 12:58

Join Date: Mar 2009
Posts: 69
purnima.attarsingh
Offline
Regular Contributor
KAknUidValueEndKeyCloseEven what is this ID?

i want when i press redkey than nothing will happen.application should not Exit on red key press .
Reply With Quote

#4 Old Re: How to capture red key - 2009-11-07, 13:03

Join Date: Aug 2005
Posts: 300
Location: India
aficianado_001
Offline
Regular Contributor
In AppUi you have to override the

void CAppUi::HandleWsEventL(const TWsEvent &aEvent,
CCoeControl *aDestination)

This function Handles window server events.

you have to handle the event
//End key event
case KAknUidValueEndKeyCloseEvent:
{
TApaTask task(iEikonEnv->WsSession( ));
task.SetWgId(iEikonEnv->RootWin().Identifier());
task.SendToBackground();
}
break;

This will send the application in background on RedKey press
Reply With Quote

#5 Old Re: How to capture red key - 2009-11-07, 13:29

Join Date: Mar 2006
Posts: 6,293
Location: Helsinki, Finland
kiran10182's Avatar
kiran10182
Offline
Forum Nokia Champion
Quote:
Originally Posted by purnima.attarsingh View Post
KAknUidValueEndKeyCloseEven what is this ID?

i want when i press redkey than nothing will happen.application should not Exit on red key press .
Simply search for the KAknUidValueEndKeyCloseEvent on Forum Nokia Wiki and you will find what you are looking after.


- Kiran
Reply With Quote

#6 Old Re: How to capture red key - 2009-11-07, 13:32

Join Date: Aug 2005
Posts: 300
Location: India
aficianado_001
Offline
Regular Contributor
Thats what you have to catch in HandleWsEventL
Reply With Quote

#7 Old Re: How to capture red key - 2009-11-07, 13:33

Join Date: Mar 2006
Posts: 6,293
Location: Helsinki, Finland
kiran10182's Avatar
kiran10182
Offline
Forum Nokia Champion
Quote:
Originally Posted by aficianado_001 View Post
Thats what you have to catch in HandleWsEventL
Did you search on Wiki? Please do it and it will ease things.


- Kiran
Reply With Quote

#8 Old Re: How to capture red key - 2009-11-09, 06:12

Join Date: Apr 2008
Posts: 459
Location: India
pawan_G's Avatar
pawan_G
Offline
Regular Contributor
Quote:
Originally Posted by kiran10182 View Post
Did you search on Wiki? Please do it and it will ease things.
implementing the empty red key case (end call key) in offerkeyeventL() may hwlp you here.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Green & Red key capture. valexey Russian Developer Forum - Форум Российских разработчиков 15 2009-01-21 13:46
Green Key Capture nilavya Symbian Tools & SDKs 1 2009-01-06 18:15
Capture Key kkrish General Symbian C++ 5 2008-06-04 10:50
Capture Key double click morost General Symbian C++ 1 2008-05-22 13:23
help needed about key capture wonz General Symbian C++ 6 2007-05-31 19:04

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia