KeyEvent
from slint.language import KeyEventpython
This structure is generated and passed to the key press and release callbacks of the FocusScope element.
Properties
Section titled “Properties”text: strThe unicode representation of the key pressed.
physical_key
Section titled “physical_key”physical_key: strThe physical key that was pressed, if the backend can report it.
This uses the same names as @physical-keys(...), for example A,
Digit1, or LeftArrow. It is empty when the backend doesn’t provide
physical key information.
modifiers
Section titled “modifiers”modifiers: AnyThe keyboard modifiers active at the time of the key press event.
repeat
Section titled “repeat”repeat: boolThis 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