MyClass : public CAknForm
.........
OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType)
{
if(aType == EEventKey) // always EFalse for abcKeys(phone, mouse + emulator keys). Whats wrong? (edwin is focused)
}
I need EEventKey
Please HELP
MyClass : public CAknForm
.........
OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType)
{
if(aType == EEventKey) // always EFalse for abcKeys(phone, mouse + emulator keys). Whats wrong? (edwin is focused)
}
I need EEventKey
Please HELP
Last edited by malep1; 2004-04-23 at 12:27.
How did you create the container?
Did you use something like this?
and what about these codes: EEventKeyDown, EEventKeyUp?Code:iContainer = new (ELeave) CMyContainer; iContainer->SetMopParent(this); iContainer->ConstructL( ClientRect() ); AppUi()->AddToStackL( *this, iContainer );
Yes. Creation of my container just like in Your code. EEventKeyDown and EEventKeyUp always comes. One more: edwin->OfferKeyEventL(aKeyEvent, aType) always returns EKeyWasNotConsumed. But when I use keyboard my OfferKeyEventL gets EKeyEvent and edwin->OfferKeyEventL returns EKeyWasConsumed.
I see. And why do you need EEventKey? As I understand it, when user presses key EEventKeyDown , EEventKey, EEventKeyUp are generated in this order. But I never used EEventKey so I don't have slightest idea what it can be used for...
Questions is if EEventKey is not consumed by FEP.
Ok. Thanks for Your replies. The EEventKey-problem is already unnecessary.
How can I detect when edwin gets a char and handles text change (cursor position is incremented and modifications of last char are not expected)
Last edited by malep1; 2004-04-23 at 12:16.