From 05044d9af3b5995c11b522dbfade43349346f74d Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Wed, 11 Oct 2023 00:39:16 -0400 Subject: [PATCH] Override F4 behavior --- source/funkin/ui/debug/charting/ChartEditorState.hx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/funkin/ui/debug/charting/ChartEditorState.hx b/source/funkin/ui/debug/charting/ChartEditorState.hx index 38c14bb08..7ddc749df 100644 --- a/source/funkin/ui/debug/charting/ChartEditorState.hx +++ b/source/funkin/ui/debug/charting/ChartEditorState.hx @@ -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);