Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor forumz's Avatar
    Join Date
    Feb 2009
    Posts
    53
    I am using body.bind to bind a hotkey for changing to text input interface(using appuifw2.Text), but here's the problem: when I press the hotkey(e.g. "*" key), changing to text input and also the "*" is typed on the screen. Is possible to prevent the hotkey keytext show on screen?? I tried to set the Text.read_only to true, and using ao_sleep for 1 sec, and then setting read_only to false, but the keytext showup after 1 sec.

    code is here:

    Code:
    appuifw.app.body.bind(EKeyStar, self.text_test)
    
    def text_test(self):
        try:
            appuifw.app.body = appuifw.Text()
        except:
            appuifw.note(u'%s\n%s' % (u'Error' unicode(e)))
    Last edited by forumz; 2009-03-18 at 14:24.

  2. #2
    Super Contributor JOM's Avatar
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976
    Quote Originally Posted by forumz View Post
    problem: when I press the hotkey(e.g. "*" key), changing to text input and also the "*" is typed on the screen. Is possible to prevent the hotkey keytext show on screen??
    Manual 1.4.5 page 28:

    bind(event code, callback)

    Binds the callable Python object callback to event event code. The key codes are defi ned in the key codes library module. The call bind(event code, None) clears an existing binding. In the current implementation the event is always passed also to the underlying native UI control.
    However you could experiment with keycapture module. Please check chapter 5.5.

    The main problem with using keycapture is that it requires SwEvent capability, thus requiring signing: either run as script under open signed Python AppShell or as signed SIS. That's trouble ...

    If anyone has any other solutions, I would most interested in hearing about them!

    Cheers,

    --jouni

  3. #3
    Regular Contributor forumz's Avatar
    Join Date
    Feb 2009
    Posts
    53
    Thanks for your hints, keycpature is the only way to solve this problem.
    Hope there's a solution for binding in PY S60 v2.0

Similar Threads

  1. Replies: 2
    Last Post: 2007-12-21, 17:07
  2. Problem with XHTML MP input fields
    By acarlsen in forum Mobile Web Site Development
    Replies: 3
    Last Post: 2007-09-10, 12:32
  3. Searchbox input text problem
    By MAD4NOKIA in forum Symbian User Interface
    Replies: 3
    Last Post: 2007-07-13, 11:14
  4. Replies: 0
    Last Post: 2004-11-24, 18:49
  5. Problem in RSS (Text Input Dialog)
    By yahyah_yy in forum Symbian C++
    Replies: 1
    Last Post: 2004-04-26, 05:09

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