1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-05 06:14:36 +00:00

Merge pull request #243 from FunkinCrew/mac-delete

Mac chart editor delete key fix
This commit is contained in:
Cameron Taylor 2023-12-13 03:47:53 -05:00 committed by GitHub
commit b39e952408

View file

@ -4549,7 +4549,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)