Skip to content

Commit

Permalink
Merge pull request #65 from jhonatan-lopes/master
Browse files Browse the repository at this point in the history
Fixed backspace and arrow support on Windows
  • Loading branch information
magmax authored Jan 5, 2022
2 parents 549c17a + 9b74c49 commit 7d60cbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion readchar/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
LF = "\x0d"
CR = "\x0a"
ENTER = "\x0d"
BACKSPACE = "\x7f"
BACKSPACE = "\x08"
SUPR = ""
SPACE = "\x20"
ESC = "\x1b"
Expand Down
8 changes: 4 additions & 4 deletions readchar/readchar.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@
20960: key.PAGE_DOWN,
18400: key.HOME,
20448: key.END,
18656: key.UP,
20704: key.DOWN,
19424: key.LEFT,
19936: key.RIGHT,
18432: key.UP, # 72 * 256
20480: key.DOWN, # 80 * 256
19200: key.LEFT, # 75 * 256
19712: key.RIGHT, # 77 * 256
}

def readkey(getchar_fn=None):
Expand Down

0 comments on commit 7d60cbf

Please sign in to comment.