Capturing any Key Event on Your Phone
The keycapture module offers an API for global capturing of keyevents. With this module, you can react to key events even if some other
S60 application is active and your PyS60 program is running only in the
background. For instance, you could have a key combination that triggers
an action regardless of the application that you are using on the phone.
The keycapture module provides a KeyCapturer object that is
used for listening to the events by way of a callback function. The callback
is called each time any of the specified keys is pressed.
Since capturing all key presses on your phone has security and privacy
implications, 3rd Edition phones require a special capability (SwEvent) to
use this module. See Appendix A for more information about capabilities.
No comments:
Post a Comment