1

Add onExit task to scenes.

Add an onExit task to scenes such that when one presses the back button or the tiny little "x" the bottom-right corner of the scene said task is performed. AutoInput doesn't seem to be up to the task (no pun intended) or I haven't figured it out, yet.

Edit: I found the way using the "key" tab of the scene's properties.