×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Sep 2003
    Location
    Ukraine
    Posts
    74

    OfferKeyEventL problem

    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.

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    Czech Republic
    Posts
    915
    How did you create the container?
    Did you use something like this?
    Code:
    iContainer = new (ELeave) CMyContainer;
    iContainer->SetMopParent(this);
    iContainer->ConstructL( ClientRect() );
    AppUi()->AddToStackL( *this, iContainer );
    and what about these codes: EEventKeyDown, EEventKeyUp?

  3. #3
    Regular Contributor
    Join Date
    Sep 2003
    Location
    Ukraine
    Posts
    74
    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.

  4. #4
    Super Contributor
    Join Date
    Apr 2003
    Location
    Czech Republic
    Posts
    915
    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.

  5. #5
    Regular Contributor
    Join Date
    Sep 2003
    Location
    Ukraine
    Posts
    74
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×