Skip to content

KeyEvent

from slint.language import KeyEvent
python

This structure is generated and passed to the key press and release callbacks of the FocusScope element.

text: str

The unicode representation of the key pressed.

modifiers: Any

The keyboard modifiers active at the time of the key press event.

repeat: bool

This field is set to true for key press events that are repeated, i.e. the key is held down. It’s always false for key release events.


© 2026 SixtyFPS GmbH