Skip to content

Commit

Permalink
Recognize \r as enter
Browse files Browse the repository at this point in the history
This seems to break on both Fedora 39 and MacPorts with Python 3.12.

See: https://trac.macports.org/ticket/69284
Closes: aristocratos#410
  • Loading branch information
neverpanic committed Feb 6, 2024
1 parent ac0f666 commit 6aca3e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bpytop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6aca3e3

Please sign in to comment.