hi

i have developed a application in Symbian.i want application should be exit on pressing redkey
for this i am using following code

TKeyResponse ClassName::OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType)
{
if(aType == EEventKey)
{
switch(aKeyEvent.iScanCode)
{
case EStdKeyNo:
{
User::Exit(0);
return EKeyWasConsumed;
}
break;

}
}
return EKeyWasNotConsumed;
}

this code is work fine on Nokia E-71,5233,N79,N95

But it is not working for Nokia N-97

please help me ,how i can exit my application on redkey press on N97