×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    19

    Strange key event in MultiView Application.

    Hello guys!

    I am writing a multi-view application and currently it has only one view.

    My problem is I wrote some functions in my container to handle the EStdKeyDevice3, and is works. But the problem is when i press that key, this application pops up the menu for that view just as i have pressed the left soft button.

    Here is some of those codes:

    if(aType==EEventKeyDown)
    {
    switch(aKeyEvent.iScanCode)
    {
    case EStdKeyDevice3:
    OpenCloseGroupSelect();
    iEikonEnv->InfoMsg(_L("Middle key!"));
    return EKeyWasConsumed;

    default:
    TBuf<20> buf(_L("Key Not Consumed:"));
    buf.AppendNum(aKeyEvent.iScanCode);
    iEikonEnv->InfoMsg(buf);
    }
    }
    Does anyone know what kind of mistakes can cause this problem?

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,673

    Re: Strange key event in MultiView Application.

    Note that your code handles EEventKeyDown only. It may happen that your own application opens the menu somewhere else, when EEventKey arrives.

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    19

    Re: Strange key event in MultiView Application.

    Quote Originally Posted by wizard_hu_ View Post
    Note that your code handles EEventKeyDown only. It may happen that your own application opens the menu somewhere else, when EEventKey arrives.
    No, i didnt handle the EEventKey anywhere else. Event if i return EKeyWasConsumed for the OfferKeyEventL() function, the Menu will pops up by pressing the OK button,Just as the Key Press Event has been handled twice in the application framework!

  4. #4
    Registered User
    Join Date
    Mar 2009
    Posts
    19

    Re: Strange key event in MultiView Application.

    I compared the Key Response of two applications, one is generated by carbide c++ 2.0 UI designer and the other is the SDK example Multi-Views-Example, the Multi-Views-Example did not response the OK the by default and UI designer one do, and i guess there maybe some code generated by UI designer handles the Key Event and i didnot found.

    If anyone has already knew that please note me, THX.

Similar Threads

  1. Replies: 106
    Last Post: 2009-05-11, 05:53
  2. End(red) Button in HandleWsEventL()
    By ezchip in forum Symbian
    Replies: 48
    Last Post: 2009-04-28, 11:46
  3. No key event for '#' key!!!!!!!
    By raj8nokiaforum in forum Symbian
    Replies: 7
    Last Post: 2009-04-27, 12:12
  4. application key manager error
    By ddamir95 in forum Symbian
    Replies: 0
    Last Post: 2004-04-02, 12:19
  5. Key Event Issues
    By mykes in forum Symbian
    Replies: 0
    Last Post: 2003-05-01, 10:55

Posting Permissions

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