Improved main scene code
This commit is contained in:
@ -8,6 +8,7 @@ func _unhandled_input(event):
|
||||
|
||||
if event.is_action_pressed("open_chat"):
|
||||
call_deferred("grab_focus")
|
||||
get_viewport().set_input_as_handled()
|
||||
|
||||
func _on_focus_entered():
|
||||
Global.interacting_with_ui = true
|
||||
|
Reference in New Issue
Block a user