Discussion Board
-
How to catch EQuartzKeyFourWayLeft or EQuartzKeyFourWayRight ?
2003-07-17, 05:14
#1
Registered User
in the next function I can't catch messages from hard-keys when I press on the Left or on the Right(for Up and Down all OK) :
TKeyResponse CQMyView::OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType)
{
if (aType!=EEventKey)
return EKeyWasNotConsumed;
switch(aKeyEvent.iCode)
{
case EQuartzKeyFourWayUp:
case EQuartzKeyTwoWayUp:
DoSomething1();
break;
case EQuartzKeyFourWayDown:
case EQuartzKeyTwoWayDown:
CEikonEnv::InfoWinL(KTxtMsg, KTxtMsg4);
DoSomething2();
break;
case EQuartzKeyFourWayLeft:
DoSomething3();
break;
case EQuartzKeyFourWayRight:
DoSomething4();
break;
default:
return EKeyWasNotConsumed;
}
return EKeyWasConsumed;
}
what may to do for this case ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules