×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    11

    Need to catch key-strokes on Nokia 6100.

    Hello,
    I need to catch everytime the user pushes a key on his Nokia 6100 phone in order to handle the character before inserting it into a textfield.

    How can this be done?
    I couldnt find any suitable SDK class (inside microedition.* package). Must I go 'deeper' into the Symbian OS in order to catch these kind of events (what symbian OS is installed on 6100?)?

    Greatful for help and/or hints.

    Sincerely
    Mikael

  2. #2
    Registered User
    Join Date
    Jul 2003
    Posts
    11

    complement

    ...and I have tried the Canvas object but the keyPressed(int keyCode) function is never called when running my MIDlet?

    Mikael

  3. #3
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    It can't be done on a regular Form. There is no way to receive keypress events in the high level UI classes.
    You also can't go "deeper into the Symbian OS", since the 6100 doesn't run Symbian. Only Series 60 phones (7650, 3650 and the upcoming 6600) run Symbian OS.
    This leaves you with only one choice: extending a Canvas. I don't understand how come keyPressed() was never called, but maybe if you post some code then I could help. Using a Canvas would mean that you would need to implement all the functionality of a TextField yourself (not a pleasant task).

    shmoove

Posting Permissions

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