Function druid_shell::text::simulate_input[][src]

pub fn simulate_input<H: WinHandler + ?Sized>(
    handler: &mut H,
    token: Option<TextFieldToken>,
    event: KeyEvent
) -> bool
Expand description

Simulates InputHandler calls on handler for a given keypress event.

This circumvents the platform, and so can’t work with important features like input method editors! However, it’s necessary while we build up our input support on various platforms, which takes a lot of time. We want applications to start building on the new InputHandler interface immediately, with a hopefully seamless upgrade process as we implement IME input on more platforms.