Skip to content

Backspace doesn't work. #3

Description

@4surix

OS : Linux MINT
Version OS : 21.2
Terminal : xfce4-terminal
Version terminal : 1.0.4


Problem

Backspace doesn't work. On my terminal, the backspace corresponds to \x7f.
The problem is here :

pitwi/pitwi/keypress.py

Lines 123 to 124 in 0f7d346

if key == '\x08':
key = 'BackSpace'

Solution

The egal comparison with the character \x7f must be added.

    if key == '\x08' or key == '\x7f':
        key = 'BackSpace'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions