Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Jan 2006

    Rogue key event trap driving me crazy

    Can anyone help? In my open source Lifeguide script - http://3lib.ukonline.co.uk/find/lifeguide_11_s603rd.zip - sometimes the first press on 'Options' brings up the menu, sometimes the first key event is lost and it takes another one.

    Utterly bizarre. No doubt down to my bad programming practices - but can anyone help? It's only a small script.

    (Lifeguide is a look up for Gideon Bible text)

    Steve Litchfield

  2. #2
    Super Contributor
    Join Date
    May 2006
    Oulu, Finland

    Re: Rogue key event trap driving me crazy

    Hi buddy,

    Drop the keyboard class in your script:
    and use bindings instead
    canvas = appuifw.Canvas(event_callback=keyboard.handle_event, redraw_callback=handle_redraw)
    canvas.bind( EKeyLeftArrow, your_action )
    Nokia E61 3rd Edition - pys60 1.4.0

    Tips and modules:

Similar Threads

  1. not getting send (call or green) key event
    By vasant21 in forum Symbian
    Replies: 2
    Last Post: 2007-01-09, 17:31
  2. How to trap key complete event
    By boumitran in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-12-09, 08:17
  3. Replies: 8
    Last Post: 2003-07-11, 12:56
  4. Key Event Issues
    By mykes in forum Symbian
    Replies: 0
    Last Post: 2003-05-01, 10:55
  5. Key event not working in 7650 simulator
    By hillcast1 in forum Mobile Java General
    Replies: 1
    Last Post: 2002-12-15, 14:47

Posting Permissions

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