1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-09-12 05:07:06 +00:00

Override F4 behavior

This commit is contained in:
EliteMasterEric 2023-10-11 00:39:16 -04:00
parent d7a15dc713
commit 05044d9af3

View file

@ -1818,6 +1818,13 @@ class ChartEditorState extends HaxeUIState
public override function update(elapsed:Float):Void
{
// Override F4 behavior to include the autosave.
if (FlxG.keys.justPressed.F4)
{
quitChartEditor();
return;
}
// dispatchEvent gets called here.
super.update(elapsed);