fn key_char(&mut self, screen: &mut Screen, ch: char) {
        if (self.dialog.filter)(ch) {
            let test_string = format!("a{}", ch);
            if test_string.graphemes(true).count() > 1 {
                let length = coord::from_index(self.buffer.len());
                if length < self.actual_max {
                    self.buffer.insert(self.cursor, ch);
                    self.cursor += 1;
                    self.render_input_box(screen);
                }
            }
        }
    }
/// Should be triggered when generic character key is pressed.
Should be triggered when generic character key is pressed.
Should be triggered when generic character key is pressed .
fn key_char(&mut self, screen: &mut Screen, ch: char) {
        if (self.dialog.filter)(ch) {
            let test_string = format!("a{}", ch);
            if test_string.graphemes(true).count() > 1 {
                let length = coord::from_index(self.buffer.len());
                if length < self.actual_max {
                    self.buffer.insert(self.cursor, ch);
                    self.cursor += 1;
                    self.render_input_box(screen);
                }
            }
        }
    }
fn key_char ( & mut self , screen : & mut Screen , ch : char ) { if ( self . dialog . filter ) ( ch ) { let test_string = format ! ( " " ch ) ; if test_string . graphemes ( true ) . count ( ) > 1 { let length = coord :: from_index ( self . buffer . len ( ) ) ; if length < self . actual_max { self . buffer . insert ( self . cursor , ch ) ; self . cursor += 1 ; self . render_input_box ( screen ) ; } } } }
Should be triggered when generic character key is pressed.
Should be triggered when generic character key is pressed .
&mut self
screen
&mut Screen
ch
char
&mut self
screen
&mut Screen
ch
char