Add waiting key, fixes #16

This commit is contained in:
Yohann D'ANELLO
2020-12-12 18:12:37 +01:00
parent 5eefe1937a
commit 7971a1f70e
9 changed files with 90 additions and 62 deletions

View File

@ -46,6 +46,7 @@ class KeyValues(Enum):
DROP = auto()
SPACE = auto()
CHAT = auto()
WAIT = auto()
@staticmethod
def translate_key(key: str, settings: Settings) -> Optional["KeyValues"]:
@ -78,4 +79,6 @@ class KeyValues(Enum):
return KeyValues.SPACE
elif key == settings.KEY_CHAT:
return KeyValues.CHAT
elif key == settings.KEY_WAIT:
return KeyValues.WAIT
return None