View Full Version : codes of the keyboard


Anduina
07-09-2005, 02:59 PM
Hi!
On the emulator the extract below runs, but on the phone the condition inside the if() is false...
How I must change the condition?

TKeyResponse CSocketsAppUi::HandleKeyEventL( const TKeyEvent& aKeyEvent,
TEventCode aType )
{
TChar theCharacter( aKeyEvent.iCode );
if ( ( aType == EEventKey ) &&
( iSocketsEngine->Communicating() ) &&
( theCharacter.IsPrint() || theCharacter == EKeyEnter ) )
{

...

return( EKeyWasConsumed );
}

return( EKeyWasNotConsumed );
}