⌂
›
Reference
›
KeyboardListener
KeyboardListener
KeyboardListener control. Build it with the keyboard_listener helper.
Example
keyboard_listener(
content: text("KeyboardListener"),
expand: true,
on_key_down: ->(event) {}
)
Properties
autofocus— Requests focus when first shown.content— The single child control rendered inside this control.include_semantics
Plus the common layout and animation properties shared by most controls (expand, visible, disabled, opacity, width, height, align, tooltip, animate_*, …).
Events
on_key_down— Fired on key down.on_key_repeat— Fired on key repeat.on_key_up— Fired on key up.
Reference
- Family:
shared - Widget type:
keyboardlistener - Helper:
keyboard_listener