×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Feb 2006
    Posts
    217

    Mapping a key to a command

    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 Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Mapping a key to a command

    Nope, so you gotta do it inside your own application logic, i.e. catch the key, and perform an action...

  3. #3
    Regular Contributor
    Join Date
    Feb 2006
    Posts
    217

    Re: Mapping a key to a command

    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 Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Mapping a key to a command

    can you run it in the emulator to see which line is causing the crash ?

  5. #5
    Regular Contributor
    Join Date
    Feb 2006
    Posts
    217

    Re: Mapping a key to a command

    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
    Join Date
    Feb 2006
    Posts
    217

    Re: Mapping a key to a command

    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
    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
  •  
×