| Reply | « Previous Thread | Next Thread » |
|
hi everyone ,i want to capture Red key .i capturing it in offerkeyeventL .but its not working.
|
| purnima.attarsingh |
| View Public Profile |
| Find all posts by purnima.attarsingh |
|
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); } } |
|
KAknUidValueEndKeyCloseEven what is this ID?
i want when i press redkey than nothing will happen.application should not Exit on red key press . |
| purnima.attarsingh |
| View Public Profile |
| Find all posts by purnima.attarsingh |
|
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 |
| aficianado_001 |
| View Public Profile |
| Find all posts by aficianado_001 |
|
Join Date: Mar 2006
Posts: 6,293
Location: Helsinki, Finland
Offline
Forum Nokia Champion
|
|
Simply search for the KAknUidValueEndKeyCloseEvent on Forum Nokia Wiki and you will find what you are looking after.
- Kiran |
|
Thats what you have to catch in HandleWsEventL
|
| aficianado_001 |
| View Public Profile |
| Find all posts by aficianado_001 |
|
Join Date: Mar 2006
Posts: 6,293
Location: Helsinki, Finland
Offline
Forum Nokia Champion
|
|
Did you search on Wiki? Please do it and it will ease things.
- Kiran |
|
implementing the empty red key case (end call key) in offerkeyeventL() may hwlp you here.
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| 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 |