Fixed the chat eating T and Y key presses while in the menu

main
unfa 2021-10-01 18:05:26 +02:00
parent cca26a5e05
commit 0cef5fb5c0
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ func _ready():
pass
func _input(_event) -> void:
if state == ChatState.INACTIVE:
if state == ChatState.INACTIVE and main.focus == main.GameFocus.GAME:
if Input.is_action_just_pressed("say_all"):
main.focus = main.GameFocus.CHAT
state = ChatState.TYPING_ALL