Function xkbcommon::xkb::keysym_to_utf32[][src]

pub fn keysym_to_utf32(keysym: Keysym) -> u32

Get the Unicode/UTF-32 representation of a keysym.

Returns The Unicode/UTF-32 representation of keysym, which is also compatible with UCS-4. If the keysym does not have a Unicode representation, returns 0.

Prefer not to use this function on keysyms obtained from an xkb_state. In this case, use xkb_state_key_get_utf32() instead.