Recognize \r as enter

This seems to break on both Fedora 39 and MacPorts with Python 3.12.

See: https://trac.macports.org/ticket/69284
Closes: #410
pull/413/head
Clemens Lang 2024-02-06 20:54:03 +01:00
parent ac0f6660be
commit 6aca3e34ce
1 changed files with 1 additions and 1 deletions

View File

@ -840,7 +840,7 @@ class Key:
mouse: Dict[str, List[List[int]]] = {}
mouse_pos: Tuple[int, int] = (0, 0)
escape: Dict[Union[str, Tuple[str, str]], str] = {
"\n" : "enter",
("\n", "\r") : "enter",
("\x7f", "\x08") : "backspace",
("[A", "OA") : "up",
("[B", "OB") : "down",