NAT flixel close on delete

This commit is contained in:
2022-09-28 23:22:57 +00:00
parent 65dc9461aa
commit c1ca1d37ed

View File

@@ -77,13 +77,10 @@
// This part is hacky... // This part is hacky...
(set lastUI textInputLabel) (set lastUI textInputLabel)
(hideUI textInputLabel)) (hideUI textInputLabel))
(~sh.currentMap (sh.currentMap
(sh.cancel)) (sh.cancel))))
(confirmQuit (when FlxG.keys.justPressed.DELETE
(Sys.exit 0)) (Sys.exit 0))
(true
(displayMessage "Really quit?")
(set confirmQuit true))))
// Press ENTER to type a command to run // Press ENTER to type a command to run
(when (and !textInput FlxG.keys.justPressed.ENTER) (when (and !textInput FlxG.keys.justPressed.ENTER)