From 7876b07c37f564bfe20988e70ef7204e3ed30052 Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Sat, 9 Dec 2023 18:00:32 -0500 Subject: [PATCH] mac delete key fix --- source/funkin/ui/debug/charting/ChartEditorState.hx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/funkin/ui/debug/charting/ChartEditorState.hx b/source/funkin/ui/debug/charting/ChartEditorState.hx index 66effc775..7f556c05f 100644 --- a/source/funkin/ui/debug/charting/ChartEditorState.hx +++ b/source/funkin/ui/debug/charting/ChartEditorState.hx @@ -4480,7 +4480,14 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState } // DELETE = Delete - if (FlxG.keys.justPressed.DELETE) + var delete:Bool = FlxG.keys.justPressed.DELETE; + + // on macbooks, Delete == backspace + #if mac + delete = delete || FlxG.keys.justPressed.BACKSPACE; + #end + + if (delete) { // Delete selected items. if (currentNoteSelection.length > 0 && currentEventSelection.length > 0)