Skip to main content

delete_last_grapheme

Function delete_last_grapheme 

pub fn delete_last_grapheme(text: &mut String) -> bool
Expand description

Backspace for text typed only at its end (a type-ahead query, a digit entry): remove the last character as a person sees it, never half of a combining sequence or an emoji. Returns whether anything was removed.