×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    30

    key name and event

    Hi, what is the name and key code of the center key(or OK key) of the five-navi-key module?
    I tested on emulator, it is not OKKey, nor EnterKey...

    Regards,

  2. #2
    Registered User
    Join Date
    Feb 2007
    Location
    India
    Posts
    1,128

    Re: key name and event

    Hushan,

    Write a small program for create a control.....and catch all Keys code ....center key or navigation key code in OfferkeyEventL function...
    and It'll also help you in future.

  3. #3
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: key name and event

    Also do remember that each key generates three events, down event, the key event, and up event.

  4. #4
    Registered User
    Join Date
    Apr 2009
    Posts
    30

    Re: key name and event

    Quote Originally Posted by kis_spn View Post
    Hushan,

    Write a small program for create a control.....and catch all Keys code ....center key or navigation key code in OfferkeyEventL function...
    and It'll also help you in future.
    hi, I did that, and I know the code, the captured code is a number, but I would like use the enum difined in e32keys.h, so I dont know which enum element is the center key.
    Also it is possible that the numeric code is different among different phone models, I should use enum for potalbility, right?

  5. #5
    Registered User
    Join Date
    Feb 2007
    Location
    India
    Posts
    1,128

    Re: key name and event

    No, There is no change in other phone also....

  6. #6
    Registered User
    Join Date
    Apr 2009
    Posts
    30

    Re: key name and event

    Quote Originally Posted by kis_spn View Post
    No, There is no change in other phone also....
    so is there a definition of the center navi key or not?

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: key name and event

    Enumerations are just named increasing numbers. If you know the number, you can find out if it is part of the enumeration.

  8. #8
    Registered User
    Join Date
    Apr 2009
    Posts
    30

    Re: key name and event

    Hi, I found the center navi key code is
    iCode 63557 F845
    iScanCode 167 A7

    and the corresponding enum in e32keys.h is

    enum TStdScanCode::EStdKeyDevice3=0xa7;
    enum TKeyCode::EKeyDevice3=0xF845;

    but is this the same among all s60 models? why the center key is called Device3 key?

  9. #9
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: key name and event

    And 1 and 2 are the left and right softkeys. It works this way starting from S60 1st edition, so it is most probably the same for all S60 models.

  10. #10
    Registered User
    Join Date
    Apr 2009
    Posts
    30

    Re: key name and event

    Quote Originally Posted by wizard_hu_ View Post
    And 1 and 2 are the left and right softkeys. It works this way starting from S60 1st edition, so it is most probably the same for all S60 models.
    OK, thanks wizard_hu. :)

Similar Threads

  1. Detect key event on Virtual key board
    By NRK in forum Symbian User Interface
    Replies: 12
    Last Post: 2010-07-25, 17:28
  2. Replies: 3
    Last Post: 2009-10-15, 08:45
  3. Replies: 2
    Last Post: 2009-09-08, 04:45
  4. How to handle key event of MSK(Middle soft key ) in a Form.....
    By babjan saheb in forum Symbian User Interface
    Replies: 4
    Last Post: 2009-04-08, 15:12
  5. key event , raw event what are dissimilarity
    By heroist in forum Symbian
    Replies: 2
    Last Post: 2006-09-20, 07:11

Posting Permissions

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