pub fn msg_surface_text(surface_id: u16, text: &str) -> Vec<u8> ⓘExpand description
Build a C2S_SURFACE_TEXT: [0x2F][surface_id:2][text:N].
Unlike SURFACE_INPUT, which carries evdev keycodes, this hands the
server UTF-8 and lets it choose how to deliver it — synthesised
US-QWERTY keys for ASCII, zwp_text_input_v3 commit_string for
anything else. It is the only way to type a character the client
cannot map to a keycode.