pygfx.objects.KeyboardEvent¶
- class pygfx.objects.KeyboardEvent(*args, key, modifiers=None, **kwargs)¶
Bases:
Event
Keyboard button press.
- Parameters:
args (Any) – Positional arguments are forwarded to the
base class
.key (str) – The key that was pressed.
modifiers (list) – The modifiers that were pressed while the key was pressed.
kwargs (Any) – Additional keyword arguments are forward to the
base class
.