fix unknown char on enter

This commit is contained in:
Kristofers Solo 2022-04-23 15:53:46 +03:00 committed by GitHub
parent 248dee71f7
commit db328c4350
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,6 +103,7 @@ def user_input(player: int) -> None:
if select_active:
if event.key == pygame.K_BACKSPACE: user_name[player] = user_name[player][:-1]
elif event.key == pygame.K_RETURN or event.key == pygame.K_KP_ENTER: continue
else: user_name[player] += event.unicode
if event.key == pygame.K_RETURN or event.key == pygame.K_KP_ENTER: