NlMakesis Y-Browser Y-Tasks
Hi ,
I want to catch green key press in my appui::HandleCommnadL()
Any idea ?????
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 ?
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
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;}
Forum posts: 10
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 ?
Forum posts: 22
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
Forum posts: 68
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;
}