How to quit a frozen scene?

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 :smiley: !

You can exit the game by pressing the “■” button in the editor..
image
(Switch to the editor with CMD + Tab on Mac)

(You probably can’t close the window directly because it stops responding to inputs when an error occurs)

1 Like

Hello Yesko, thank you for your response.

I cannot press the “■” button in the editor, because, as I mentioned, my mouse is on capture mode and thus it isn’t visible.

I can’t switch “tabs” neither because both Windows are considered as one…

Actually, I can use the shortcut of the “■” button itself (CMD + .). It is exactly what I was looking for…
Sorry for the oversight!