Struct KeyEvent¶
Defined in File slint_builtin_structs.h
Struct Documentation¶
-
struct KeyEvent¶
This structure is generated and passed to the key press and release callbacks of the
FocusScopeelement.Public Members
-
SharedString text¶
The unicode representation of the key pressed.
-
KeyboardModifiers modifiers¶
The keyboard modifiers active at the time of the key press event.
-
bool repeat¶
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.
-
SharedString text¶