Skip to main content

web_should_dispatch_text_input

Function web_should_dispatch_text_input 

Source
pub fn web_should_dispatch_text_input(
    ime_active: bool,
    mods: Modifiers,
    key: &str,
) -> bool
Expand description

Returns true when a browser keydown event should also emit a printable WindowEvent::TextInput.

§Arguments

  • bool - Whether the hidden browser IME proxy <input> is currently active.
  • Modifiers - Active keyboard modifiers on the DOM KeyboardEvent.
  • &str - DOM KeyboardEvent.key string.

§Returns

  • bool - true only for unmodified printable single-character keys while IME proxy is inactive.