Merge pull request #148 from FunkinCrew/feature/chart-editor-file-keybinds

Chart Editor: Added missing File menu keybinds
This commit is contained in:
Cameron Taylor 2023-09-12 22:37:50 -04:00 committed by GitHub
commit eae1723d87

View file

@ -2933,6 +2933,18 @@ class ChartEditorState extends HaxeUIState
*/
function handleFileKeybinds():Void
{
// CTRL + N = New Chart
if (FlxG.keys.pressed.CONTROL && FlxG.keys.justPressed.N)
{
ChartEditorDialogHandler.openWelcomeDialog(this, true);
}
// CTRL + O = Open Chart
if (FlxG.keys.pressed.CONTROL && FlxG.keys.justPressed.O)
{
ChartEditorDialogHandler.openBrowseWizard(this, true);
}
// CTRL + Q = Quit to Menu
if (FlxG.keys.pressed.CONTROL && FlxG.keys.justPressed.Q)
{