how 2 catch green key press in my application ?

Login to reply to this topic.
Mon, 2007-10-15 13:04
Joined: 2007-05-24
Forum posts: 22

Hi ,

I want to catch green key press in my appui::HandleCommnadL()

Any idea ?????


Thu, 2007-10-18 15:24
Joined: 2007-08-31
Forum posts: 10
Re: how 2 catch green key press in my application ?


Hi Mr . Sameer ,

Key press events are sent by the framework (appui ) to whatever control that are there on the controlstack .

Theres a difference between keys and command that appear on phone ,how can u handle a key press in call back function

of appui HandleCommnadL ,which from its name indicates command handling, even the parameters of the function return

you the command focussed ,not the key press.

How can change u Framework ?

Sat, 2007-10-20 08:13
Joined: 2007-05-24
Forum posts: 22
Re: how 2 catch green key press in my application ?

Thxs Swap 4 ur Replay ,

See my exact requirement is

I have to dial number on green key press ,
(I have written code 4 diallling number)

See I can also dial number from offerkeyeventl on green key press ,
But i cant do it . Bcoz I have same code in HandleCommandl for Dial Command .

So is there any way by which I can get greenkey button command inside HandleCommandl .
I

Mon, 2007-10-22 16:40
Joined: 2006-09-18
Forum posts: 68
Re: how 2 catch green key press in my application ?

I don't know if I understand your problem correctly, but here goes.

In OfferKeyEventL() check for EStdKeyYes, that is the green button.

if(aKeyEvent.iScanCode == EStdKeyYes)
{
    if(aType == EEventKeyDown)
        Dial();

    return EKeyWasConsumed;
}

  • Login to reply to this topic.