Read-only archive of the All About Symbian forum (2001–2013) · About this archive

codes of the keyboard

0 replies · 1,335 views · Started 07 September 2005

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 );
}