×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    6

    [E71 device] Key code received by the Canvas[midlet] when chr/ctrl is pressed

    Hi,
    I want to know what is the key code received by the Midlet(Canvas based) when the user press chr/ctrl key on the QWERTY keyboard of E71 device.

    It will be of great help if we can get a link which gives details on the behavior of the QWERTY keyboard for E71 devices.

    Thanks,
    dp_bits

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: [E71 device] Key code received by the Canvas[midlet] when chr/ctrl is pressed

    Hi,
    The best idea in my mind would be -
    Do you have the emulator for the same-
    If yes then put system.out.println() in keypressed() method..then just check that on the desired key pressed what is the keycode returned..like

    public void keyPressed(int keyCode)
    {
    System.out.println("code ->"+keyCode );
    }

    Hope this makes sense,
    Thanks,
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  3. #3
    Registered User
    Join Date
    Oct 2007
    Posts
    6

    Re: [E71 device] Key code received by the Canvas[midlet] when chr/ctrl is pressed

    Hi Raj_J2ME,
    Thanks a lot for the reply.

    I have already done what you proposed. When we press the chr/ctrl key; the midlet is not receiving any keyPressed Event.

    So, what can be the next step that we can do here???

    Thanks,
    dp_bits

  4. #4
    Registered User
    Join Date
    Oct 2007
    Posts
    6

    Re: [E71 device] Key code received by the Canvas[midlet] when chr/ctrl is pressed

    Hi,
    Can some one please respond to this issue as soon as posible.

    Thanks in advance,
    dp_bits

  5. #5
    Registered User
    Join Date
    Apr 2006
    Posts
    17

    Re: [E71 device] Key code received by the Canvas[midlet] when chr/ctrl is pressed

    Hi,

    I think the ctrl/chr key (just like the "shift-ish" key in the low left corner) just doesn't fire an event.

    I don't know what you're eventually after, but you can catch (almost) all the other keys by comparing them (the key values from the event) to ascii values. There are mappings all over the net, like http://www.killersites.com/webDesign...scii_page2.htm where you can check and compare. Useful for e.g. printing chars on low-level ui stuff.

  6. #6
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: [E71 device] Key code received by the Canvas[midlet] when chr/ctrl is pressed

    As I recall, the keys on the E71 keyboard send unicode values. There are, of course, no unicode values for keys like "shift" or "ctrl". So these keys do not send an event. They do send an event when pressed at the same time as another key, so A sends 97, shift-A sends 65 and ctrl-A should send 1.

  7. #7
    Registered User
    Join Date
    Oct 2007
    Posts
    6

    Re: [E71 device] Key code received by the Canvas[midlet] when chr/ctrl is pressed

    HI tomuli and grahamhughes,

    Thanks a lot for the reply.

    On E71 devices if we press chr/ctrl key, special characters screen will be coming up and we can choose the special character from the screen.

    In one of my Midlet's I just want to mimic this behavior. When ever the user press this key I want to show my screen. But unfortunately I am not receiving any keyPressed event on my canvas when this key(chr/ctrl) is pressed.

    Any work around on this issue will be of great help.

    Thanks & Best Regards,
    dp_bits

  8. #8
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: [E71 device] Key code received by the Canvas[midlet] when chr/ctrl is pressed

    Hi,
    Well,please check this link and you will find the key codes for the canvas..for the different manufacturer ..
    for E 71
    Developer Platform S60 3rd Edition, Feature Pack 1
    Operating System Symbian OS v9.2
    Resolution 320 x 240
    for the same the codes are as below,
    http://www.j2meforums.com/wiki/index...anvas_Keycodes

    Hope this can help you,
    Thanks,
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  9. #9
    Registered User
    Join Date
    Aug 2008
    Posts
    1

    Re: [E71 device] Key code received by the Canvas[midlet] when chr/ctrl is pressed

    Ctrl-A only returns 1 after the grey "shift" key (in the low left corner) has been pressed twice ("number mode" or "character mode")
    When in "normal mode" the ctrl button has no effect.
    Seems like a bug...

Similar Threads

  1. Replies: 2
    Last Post: 2006-07-10, 12:27
  2. Character code and scan code for Menu Key?
    By mayur_24 in forum Symbian
    Replies: 0
    Last Post: 2004-11-30, 12:50
  3. Simulating left soft key, Pls look in to my code
    By alokkumarsingh in forum Symbian
    Replies: 4
    Last Post: 2004-07-05, 13:47
  4. Replies: 0
    Last Post: 2003-12-10, 06:31
  5. Key code for "write" key on 3650
    By enyback in forum Symbian
    Replies: 1
    Last Post: 2003-12-05, 08:37

Posting Permissions

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