Godot Version
4.5.stable
Question
I’m wondering if there is a shortcut or a way to quit a frozen scene, or a scene in which an error has occurred. I have this in my main node:
func _input(event: InputEvent) -> void:
if event.is_action_pressed("ui_cancel"):
get_tree().quit()
And it allows me to easily quit the running scene when I’m testing. However, when an exception / error occurs, or if the game freezes, that function is no longer responsive. The simple solution would obviously be to just click the x button to close the running scene window, but I have my mouse on capture mode, and so it isn’t visible. I don’t know if this is a MacOs only thing, but pressing CMD + Q (the shortcut to close an app) doesn’t work either. And so I’m left with a frozen scene and I have to force quite all of Godot.
Thank you in advance for your help
!