mirror of
https://github.com/kristoferssolo/School.git
synced 2025-10-21 20:10:38 +00:00
fix unknown char on enter
This commit is contained in:
parent
248dee71f7
commit
db328c4350
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user