Problem with restricting the editWindow to Text.

Login to reply to this topic.
Mon, 2008-04-14 16:10
Joined: 2008-02-12
Forum posts: 25

hi to all,
I am using an edit window and i just want to accept it as a text input(A-Z),for that i am using OfferKeyEventL() and restricting text as

TKeyResponse CInputTextEdwin::OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aType)
{
if( aType == EEventKeyDown )
{


if( (aKeyEvent.iScanCode >= 65) && (aKeyEvent.iScanCode <=90 ) )
{
CEikEdwin::OfferKeyEventL(aKeyEvent,aType);
return EKeyWasConsumed;

}

}
return EKeyWasNotConsumed;
}

the control goes till iscancodes perfectly.and the event gets passed to CEikEdwin::OfferKeyEventL(),but there is no text get displayed on edit window,Please can any one tell me what would be the problem,Thank you


Thu, 2008-05-08 11:17
Joined: 2006-11-23
Forum posts: 15
Re: Problem with restricting the editWindow to Text.

Hi Sandesh,

Don't filter out the event types just filter out the event codes... I mean remove the first if condition and let all types of key events
(EEventKeyDown, EEventKey, EEventKeyUp) to pass to the edwin control....

Br,
Pankaj


Pankaj Dubey

Thu, 2008-05-08 11:29
Joined: 2008-02-12
Forum posts: 25
Re: Problem with restricting the editWindow to Text.

Hi pankaj,

Thanks once again, yes i have already done the same thing as you told and its working fine.

Thanks al ot.

  • Login to reply to this topic.