Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor er_benji's Avatar
    Join Date
    Feb 2006
    Posts
    217
    Hi,

    How can I (if it is possible) map a key (e.g. number key 3) to a command? This is to use HandleCommandL in the view instead of using OfferKeyEventL in the container.

    Thanks.

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,712
    Nope, so you gotta do it inside your own application logic, i.e. catch the key, and perform an action...

  3. #3
    Regular Contributor er_benji's Avatar
    Join Date
    Feb 2006
    Posts
    217
    Quote Originally Posted by symbianyucca View Post
    Nope, so you gotta do it inside your own application logic, i.e. catch the key, and perform an action...
    I catch the key in the container and call the HandleCommandL in the view but I get an error (KERR-EXEC 3) when I call a API method!!! If the HandleCommandL is called through a softkey(command) the code is executed ok. It has no sense at all.

  4. #4
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,712
    can you run it in the emulator to see which line is causing the crash ?

  5. #5
    Regular Contributor er_benji's Avatar
    Join Date
    Feb 2006
    Posts
    217
    In the emulator runs ok, the method only shows a dialog that runs ok when it is called in other places of the application.

    cheers.

  6. #6
    Regular Contributor er_benji's Avatar
    Join Date
    Feb 2006
    Posts
    217
    Hi,

    It has been solved cleaning the project and cleaning manually all the files in the epoc directory related to the project. Lately, I have this problem very frequently, I don't know why.

    Thanks.

    Cheers.

Similar Threads

  1. Problem In Mapping physical key mapping with logical key
    By amatra in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2007-11-26, 12:55
  2. How can i solve this error?
    By symbian-newbie in forum Symbian C++
    Replies: 6
    Last Post: 2006-05-23, 05:33
  3. Getting started with Carbide.vs -- running the app
    By ET3D in forum Symbian Tools & SDKs
    Replies: 6
    Last Post: 2005-11-23, 17:45
  4. UNDESIRED Exit command key.
    By tektronic in forum Mobile Java General
    Replies: 4
    Last Post: 2005-05-13, 18:27
  5. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46

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