Skip to main content

synthesize_text

Function synthesize_text 

Source
pub fn synthesize_text(node: RNode, text: String)
Expand description

Deliver synthetic TYPING to a text control (the dayscript input step and the autodrive string commands both route here): paint the widget via the ordinary app-write patch, then enqueue the TextChanged event. Both halves are needed — when a real user types, the text is already in the native field by the time its change event fires, so the two-way binding’s echo guard deliberately suppresses the write-back (§4.4); a synthesized event alone would drive the app’s signal while the widget kept showing its old text.

Day API ↩ Guides· daybrite.dev