'Action for Backspace key'

def _key_backspace(self, cursor_position):

    if self.has_selected_text():
        self.check_selection()
        self.remove_selected_text()
    elif (self.current_prompt_pos == cursor_position):
        return
    elif self.is_cursor_on_last_line():
        self.stdkey_backspace()
