pub fn as_chars(&self) -> Vec<char> {
        match self.direction {
            KeyDirection::Up => Vec::new(),
            KeyDirection::Down => {
                let chars: Vec<char> = self.state.key_get_utf8(self.keycode).chars().collect();
                if self.is_shift_pressed() {
                    chars
                        .into_iter()
                        .map(|character| {
                            character.to_uppercase().into_iter().collect::<Vec<char>>()
                        })
                        .flatten()
                        .collect()
                } else {
                    chars
                }
            }
        }
    }
/// Return the keystrokes as chars. Only key down direction will be returned.
Return the keystrokes as chars. Only key down direction will be returned.
Return the keystrokes as chars . Only key down direction will be returned .
pub fn as_chars(&self) -> Vec<char> {
        match self.direction {
            KeyDirection::Up => Vec::new(),
            KeyDirection::Down => {
                let chars: Vec<char> = self.state.key_get_utf8(self.keycode).chars().collect();
                if self.is_shift_pressed() {
                    chars
                        .into_iter()
                        .map(|character| {
                            character.to_uppercase().into_iter().collect::<Vec<char>>()
                        })
                        .flatten()
                        .collect()
                } else {
                    chars
                }
            }
        }
    }
pub fn as_chars ( & self ) -> Vec < char > { match self . direction { KeyDirection :: Up => Vec :: new ( ) , KeyDirection :: Down => { let chars : Vec < char > = self . state . key_get_utf8 ( self . keycode ) . chars ( ) . collect ( ) ; if self . is_shift_pressed ( ) { chars . into_iter ( ) . map ( | character | { character . to_uppercase ( ) . into_iter ( ) . collect :: < Vec < char > > ( ) } ) . flatten ( ) . collect ( ) } else { chars } } } }
Return the keystrokes as chars.
Return the keystrokes as chars .
&self
&self