From c85a814397f13d17000cc6c760dd40af40af5995 Mon Sep 17 00:00:00 2001 From: mecaneer23 Date: Fri, 26 Apr 2024 15:00:10 -0500 Subject: [PATCH] feat: begin to add keys to _SPECIAL_KEYS dict (arrow keys) --- src/acurses.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/acurses.py b/src/acurses.py index 9cda798..7a5e028 100644 --- a/src/acurses.py +++ b/src/acurses.py @@ -66,7 +66,13 @@ def _write(string: str) -> int: _ANSI_RESET = "\033[0m" -_SPECIAL_KEYS: dict[str, tuple[int, ...]] = {"27": (27, -1)} +_SPECIAL_KEYS: dict[str, set[int]] = { + "27": {27, -1}, + "27-91-65": {259}, + "27-91-66": {258}, + "27-91-67": {261}, + "27-91-68": {260}, +} _SHORT_TIME_SECONDS = 0.01