Skip to main content

web_is_ime_composition_key

Function web_is_ime_composition_key 

Source
pub fn web_is_ime_composition_key(
    is_composing: bool,
    key: &str,
    key_code: u32,
) -> bool
Expand description

Returns true when a browser keydown event belongs to an active IME composition and must not emit raw English text.

§Arguments

  • bool - DOM KeyboardEvent.isComposing flag.
  • &str - DOM KeyboardEvent.key string.
  • u32 - DOM KeyboardEvent.keyCode value.

§Returns

  • bool - true when the keystroke is being consumed by an active OS/browser IME.