mirror of
https://github.com/kristoferssolo/School.git
synced 2026-02-04 06:42:11 +00:00
fix unknown char on enter
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user