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

This commit is contained in:
unfa 2021-10-01 18:05:26 +02:00
parent cca26a5e05
commit 0cef5fb5c0

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