Package libavg :: Module avg :: Class KeyEvent

Class KeyEvent




Raised when a key is pressed or released.

Instance Methods

Inherited from Event: __init__

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties
  keycode
The keycode of the key according to the current layout (ro).
  keystring
A character or word describing the key pressed (ro).
  modifiers
Any modifiers (shift, ctrl,...) pressed as well (ro).
  scancode
The untranslated scancode of the key pressed (ro).

Inherited from Event: type, when

Inherited from object: __class__

Property Details

keycode

The keycode of the key according to the current layout (ro).
Get Method:
unreachable(...)

keystring

A character or word describing the key pressed (ro).
Get Method:
unreachable(...)

modifiers

Any modifiers (shift, ctrl,...) pressed as well (ro).
Get Method:
unreachable(...)

scancode

The untranslated scancode of the key pressed (ro).
Get Method:
unreachable(...)