3.5.2 KeyCapturer objects

KeyCapturer object takes a callback method as a mandatory parameter to its constructor. The callback method must have one single parameter for forwarding the key code of the captured key.

There can be several KeyCapturer objects existing at the same time.

KeyCapturer object has following methods and properties:

List of keys to be captured. Can be read and written.
keys = (key_codes.EkeyUpArrow,)
keys = keycapture.all_keys

Specifies whether captured key events are forwarded to other applications or not. Either has value 1 or 0. Can be read and written.

start( )
Starts the actual capturing of key events.

stop( )
Stops the actual capturing of key events.

last_key( )
Returns last key code that is captured.

See About this document... for information on suggesting changes.