I want to capture the Green Key on my application.
Using OfferKeyEventL function I get the iScanCode as EStdKeyYes.
There are two different views where I need to handle the Green Key Press.
For e.g. If you are in First View, On first press of Green Key, Activate the Second view. If Green Key Press is detected in second view Display a message. But for me in the first view if I press Green key the application immediately activates the view and displays the message as well.
Following is my code on capturing Green Key
Also, if I debug the application (using breakpoints), it works fine in sequence. Does it mean something related to Delay in processing and activating view ?
if(aKeyEvent.iScanCode == EStdKeyYes)