Hi,
I'm a newbie to Symbian. Trying to write some code to send keystrokes / key events to screen. Basically if the user presses 1 then 1 should be displayed on the screen, and so on.
My HandleKeyEvent is as follows:
TKeyResponse CMyPhoneAppAppUi::HandleKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType)
{
if(aType == EEventKey)
{
// if number key 1
if(aKeyEvent.iScanCode == EStdKeyNkp1)
{
RStringBuf t;
t.CopyLC( _L("1") );
//t.AppendFillL( 'a', 1 );
CAknInformationNote* infoNote;
infoNote = new ( ELeave ) CAknInformationNote;
infoNote->ExecuteLD(t);
CleanupPopAndDestroy( t );
}
// do nothing
}
return EKeyWasConsumed;
}
Could somebody help me with how to get it to display on the UI of my Application.
Thank u
k9p4





