def is_backspace(self, key):
    'Check if `key` is the backspace/delete key.\n\n        Parameters\n        ----------\n        key : str\n            The key to check.\n\n        Returns\n        -------\n        is_backspace : bool\n            True if `key` is the backspace or delete key, False otherwise.\n        '
    if ((key == curses.KEY_BACKSPACE) or (key == '\x08') or (key == '\x7f')):
        return True
    else:
        return False
Check if `key` is the backspace/delete key.

Parameters
----------
key : str
    The key to check.

Returns
-------
is_backspace : bool
    True if `key` is the backspace or delete key, False otherwise.
def is_backspace(self, key):
    'Check if `key` is the backspace/delete key.\n\n        Parameters\n        ----------\n        key : str\n            The key to check.\n\n        Returns\n        -------\n        is_backspace : bool\n            True if `key` is the backspace or delete key, False otherwise.\n        '
    if ((key == curses.KEY_BACKSPACE) or (key == '\x08') or (key == '\x7f')):
        return True
    else:
        return False