Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User timlei's Avatar
    Join Date
    Mar 2003
    Posts
    1
    It seems that HandleKeyEventL() function would only work for single key event. If my application require the user press two keys(e.g. 3 and 6) on the phone at the same time, how should I handle it?

    Many thanks.

  2. #2
    Regular Contributor etunkelo's Avatar
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    260
    You can allow multiple keypresses using CAknAppUi::SetKeyBlockMode ( TAknKeyBlockMode aMode )
    By default TAknKeyBlockMode is set to EDefaultBlockMode=0. You need to set it to ENoKeyBlock.
    This will allow you to receive key events for all keypresses, also simultaneous keypresses.

    However, there are some restrictions:
    2 keypresses at the time are easy to detect. Some combinations of 3 or 4 can be detected, if they are on the same row for instance.

    Navigator is under its own interface and is not dependent on other buttons, however HW restricts that you cannot both press it and move it.

    Softkeys and the application button are also under their own interface, so they are independent of the other buttons. However there you can detect only two keypresses.

    Once you release the key blocking you will receive normal key events to detect the buttons.


    Developer Support
    Forum Nokia

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved