fn key_backspace(&mut self, screen: &mut Screen) {
        if self.cursor > 0 {
            self.cursor -= 1;
            self.buffer.remove(self.cursor);
            self.render_input_box(screen);
        }
    }
/// Should be triggered when BACKSPACE key is pressed.
Should be triggered when BACKSPACE key is pressed.
Should be triggered when BACKSPACE key is pressed .
fn key_backspace(&mut self, screen: &mut Screen) {
        if self.cursor > 0 {
            self.cursor -= 1;
            self.buffer.remove(self.cursor);
            self.render_input_box(screen);
        }
    }
fn key_backspace ( & mut self , screen : & mut Screen ) { if self . cursor > 0 { self . cursor -= 1 ; self . buffer . remove ( self . cursor ) ; self . render_input_box ( screen ) ; } }
Should be triggered when BACKSPACE key is pressed.
Should be triggered when BACKSPACE key is pressed .
&mut self
screen
&mut Screen
&mut self
screen
&mut Screen