Skip to content

Commit

Permalink
refactor: use Key rather than magic number
Browse files Browse the repository at this point in the history
  • Loading branch information
mecaneer23 committed Jun 12, 2024
1 parent 54d7db6 commit 8d444b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/acurses.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def getch(self) -> int:
def _get_current_from_buffer(self) -> list[int]:
char = _GETCH.get()
current = [char]
if char == 27:
if char == Key.escape:
esc = now()
while now() - esc < _SHORT_TIME_SECONDS:
try:
Expand Down

0 comments on commit 8d444b1

Please sign in to comment.