1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-30 10:44:37 +00:00

mac delete key fix

This commit is contained in:
Cameron Taylor 2023-12-09 18:00:32 -05:00
parent cf41eb661d
commit 7876b07c37

View file

@ -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)