From 0cef5fb5c066c0e57ef3b6cacdd17b48825a8b20 Mon Sep 17 00:00:00 2001 From: unfa Date: Fri, 1 Oct 2021 18:05:26 +0200 Subject: [PATCH] Fixed the chat eating T and Y key presses while in the menu --- Game/Assets/HUD/Chat.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Game/Assets/HUD/Chat.gd b/Game/Assets/HUD/Chat.gd index 6b2f374..a7e1c39 100644 --- a/Game/Assets/HUD/Chat.gd +++ b/Game/Assets/HUD/Chat.gd @@ -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